瀏覽代碼

Update ggpomological header image

pull/4/head
Garrick Aden-Buie 8 年之前
父節點
當前提交
171f4bd5a1
共有 8 個文件被更改,包括 19 次插入2 次删除
  1. +18
    -1
      Readme.Rmd
  2. +1
    -1
      Readme.md
  3. 二進制
      Readme_files/figure-gfm/ggpomological.png
  4. 二進制
      Readme_files/figure-gfm/plot-bar-chart-painted.png
  5. 二進制
      Readme_files/figure-gfm/plot-demo-painted.png
  6. 二進制
      Readme_files/figure-gfm/plot-density-demo-painted.png
  7. 二進制
      Readme_files/figure-gfm/plot-full-bar-stack-painted.png
  8. 二進制
      Readme_files/figure-gfm/plot-ridges-painted.png

+ 18
- 1
Readme.Rmd 查看文件

@@ -27,7 +27,24 @@ library(dplyr)

This package provides a ggplot2 theme inspired by the [USDA Pomological Watercolors collection][usda-pom] and by Aron Atkins's ([\@aronatkins][t-aronatkins]) [talk on parameterized RMarkdown][rsconf-video] at [rstudio::conf 2018][rstudioconf].

![](Readme_files/figure-gfm/plot-bar-chart-painted.png)
```{r header-demo, echo=FALSE, message=FALSE, warning=FALSE}
fruits <- c("Apple", "Apricot", "Banana", "Fig", "Cherry", "Kiwi", "Grape", "Mango", "Papaya", "Orange", "Peach", "Pear")
readr::read_tsv("https://cs.joensuu.fi/sipu/datasets/Compound.txt", col_names = FALSE) %>%
filter(X3 < 10) %>%
mutate(X3 = sample(fruits, length(unique(X3)))[X3]) %>%
{
ggplot(., aes(x = X1, y = X2, color = X3)) +
geom_point() +
labs(x = "Space", y = "Time",
color = "Fruit", title = "ggpomological") +
scale_color_pomological() +
theme_pomological()
} %>%
paint_pomological(res = 110) %>%
magick::image_write("Readme_files/figure-gfm/ggpomological.png")
```

![](Readme_files/figure-gfm/ggpomological.png)

![](Readme_files/pom-examples.jpg)


+ 1
- 1
Readme.md 查看文件

@@ -13,7 +13,7 @@ Aron Atkins’s ([@aronatkins](https://twitter.com/aronatkins)) [talk on
parameterized RMarkdown](https://youtu.be/Ol1FjFR2IMU?t=5h21m15s) at
[rstudio::conf 2018](https://www.rstudio.com/conference/).

![](Readme_files/figure-gfm/plot-bar-chart-painted.png)
![](Readme_files/figure-gfm/ggpomological.png)

![](Readme_files/pom-examples.jpg)


二進制
Readme_files/figure-gfm/ggpomological.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 563KB

二進制
Readme_files/figure-gfm/plot-bar-chart-painted.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 531KB Width: 800  |  Height: 500  |  Size: 531KB

二進制
Readme_files/figure-gfm/plot-demo-painted.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 534KB Width: 800  |  Height: 500  |  Size: 534KB

二進制
Readme_files/figure-gfm/plot-density-demo-painted.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 515KB Width: 800  |  Height: 500  |  Size: 515KB

二進制
Readme_files/figure-gfm/plot-full-bar-stack-painted.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 509KB Width: 800  |  Height: 500  |  Size: 509KB

二進制
Readme_files/figure-gfm/plot-ridges-painted.png 查看文件

Before After
Width: 800  |  Height: 500  |  Size: 528KB Width: 800  |  Height: 500  |  Size: 528KB

Loading…
取消
儲存