瀏覽代碼

Update to get magick to write into Readme_files

pull/4/head
Garrick Aden-Buie 8 年之前
父節點
當前提交
69d5c24b53
共有 8 個檔案被更改,包括 43 行新增23 行删除
  1. +24
    -9
      Readme.Rmd
  2. +19
    -14
      Readme.md
  3. 二進制
      Readme_files/figure-gfm/plot-bar-chart-painted.png
  4. 二進制
      Readme_files/figure-gfm/plot-demo-painted.png
  5. 二進制
      Readme_files/figure-gfm/plot-density-demo-painted.png
  6. 二進制
      Readme_files/figure-gfm/plot-full-bar-stack-1.png
  7. 二進制
      Readme_files/figure-gfm/plot-full-bar-stack-painted.png
  8. 二進制
      Readme_files/figure-gfm/plot-ridges-painted.png

+ 24
- 9
Readme.Rmd 查看文件

pomological_iris pomological_iris


# Painted! # Painted!
paint_pomological(pomological_iris, res = 110)
paint_pomological(pomological_iris, res = 110) %>%
magick::image_write("Readme_files/figure-gfm/plot-demo-painted.png")
``` ```


![](Readme_files/figure-gfm/plot-demo-painted.png)

### Stacked bar chart ### Stacked bar chart




paint_pomological( paint_pomological(
stacked_bar_plot + pomological_theme_nobg(), stacked_bar_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-bar-chart-painted.png")
``` ```


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

### Density Plot ### Density Plot


```{r plot-density} ```{r plot-density}
paint_pomological( paint_pomological(
density_plot + pomological_theme_nobg(), density_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-density-demo-painted.png")
``` ```


![](Readme_files/figure-gfm/plot-density-demo-painted.png)



### Points and lines ### Points and lines


Data from the Texas Housing Data from the Texas Housing


```{r plot-points-lines}
```{r plot-full-bar-stack}
big_volume_cities <- txhousing %>% big_volume_cities <- txhousing %>%
group_by(city) %>% group_by(city) %>%
summarize(mean_volume = mean(volume, na.rm = TRUE)) %>% summarize(mean_volume = mean(volume, na.rm = TRUE)) %>%
top_n(length(pomological_palette)) %>% top_n(length(pomological_palette)) %>%
pull(city) pull(city)


point_line_plot <- txhousing %>%
full_bar_stack_plot <- txhousing %>%
filter(city %in% big_volume_cities) %>% filter(city %in% big_volume_cities) %>%
group_by(city, year) %>% group_by(city, year) %>%
summarize(mean_volume = mean(volume, na.rm = TRUE)) %>% summarize(mean_volume = mean(volume, na.rm = TRUE)) %>%
theme(panel.grid.minor.x = element_blank()) + theme(panel.grid.minor.x = element_blank()) +
scale_fill_pomological() scale_fill_pomological()


point_line_plot + pomological_theme()
full_bar_stack_plot + pomological_theme()


paint_pomological( paint_pomological(
point_line_plot + pomological_theme_nobg(),
full_bar_stack_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-full-bar-stack-painted.png")
``` ```


![](Readme_files/figure-gfm/plot-full-bar-stack-painted.png)

### One last plot ### One last plot


(in my handwriting) (in my handwriting)
scale_fill_pomological() + scale_fill_pomological() +
scale_color_pomological() scale_color_pomological()


paint_pomological(ridges_pomological, res = 110)
paint_pomological(ridges_pomological, res = 110) %>%
magick::image_write("Readme_files/figure-gfm/plot-ridges-painted.png")
``` ```


![](Readme_files/figure-gfm/plot-ridges-painted.png)





## Appendix ## Appendix

+ 19
- 14
Readme.md 查看文件



``` r ``` r
# Painted! # Painted!
paint_pomological(pomological_iris, res = 110)
paint_pomological(pomological_iris, res = 110) %>%
magick::image_write("Readme_files/figure-gfm/plot-demo-painted.png")
``` ```


![](/var/folders/qy/gyl9x1w92m5brmly42cp1vmw0000gn/T//RtmpBqcdzh/file12b2745be8e51.png)<!-- -->
![](Readme_files/figure-gfm/plot-demo-painted.png)


### Stacked bar chart ### Stacked bar chart


paint_pomological( paint_pomological(
stacked_bar_plot + pomological_theme_nobg(), stacked_bar_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-bar-chart-painted.png")
``` ```


![](/var/folders/qy/gyl9x1w92m5brmly42cp1vmw0000gn/T//RtmpBqcdzh/file12b276584e0be.png)<!-- -->
![](Readme_files/figure-gfm/plot-bar-chart-painted.png)


### Density Plot ### Density Plot


paint_pomological( paint_pomological(
density_plot + pomological_theme_nobg(), density_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-density-demo-painted.png")
``` ```


![](/var/folders/qy/gyl9x1w92m5brmly42cp1vmw0000gn/T//RtmpBqcdzh/file12b27793123dc.png)<!-- -->
![](Readme_files/figure-gfm/plot-density-demo-painted.png)


### Points and lines ### Points and lines


## Selecting by mean_volume ## Selecting by mean_volume


``` r ``` r
point_line_plot <- txhousing %>%
full_bar_stack_plot <- txhousing %>%
filter(city %in% big_volume_cities) %>% filter(city %in% big_volume_cities) %>%
group_by(city, year) %>% group_by(city, year) %>%
summarize(mean_volume = mean(volume, na.rm = TRUE)) %>% summarize(mean_volume = mean(volume, na.rm = TRUE)) %>%
theme(panel.grid.minor.x = element_blank()) + theme(panel.grid.minor.x = element_blank()) +
scale_fill_pomological() scale_fill_pomological()


point_line_plot + pomological_theme()
full_bar_stack_plot + pomological_theme()
``` ```


![](Readme_files/figure-gfm/plot-points-lines-1.png)<!-- -->
![](Readme_files/figure-gfm/plot-full-bar-stack-1.png)<!-- -->


``` r ``` r
paint_pomological( paint_pomological(
point_line_plot + pomological_theme_nobg(),
full_bar_stack_plot + pomological_theme_nobg(),
res = 110 res = 110
)
) %>%
magick::image_write("Readme_files/figure-gfm/plot-full-bar-stack-painted.png")
``` ```


![](/var/folders/qy/gyl9x1w92m5brmly42cp1vmw0000gn/T//RtmpBqcdzh/file12b2733b948e.png)<!-- -->
![](Readme_files/figure-gfm/plot-full-bar-stack-painted.png)


### One last plot ### One last plot


scale_fill_pomological() + scale_fill_pomological() +
scale_color_pomological() scale_color_pomological()


paint_pomological(ridges_pomological, res = 110)
paint_pomological(ridges_pomological, res = 110) %>%
magick::image_write("Readme_files/figure-gfm/plot-ridges-painted.png")
``` ```


## Picking joint bandwidth of 0.057 ## Picking joint bandwidth of 0.057


![](/var/folders/qy/gyl9x1w92m5brmly42cp1vmw0000gn/T//RtmpBqcdzh/file12b2719dfe159.png)<!-- -->
![](Readme_files/figure-gfm/plot-ridges-painted.png)


## Appendix ## Appendix



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

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

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

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

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

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

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

Before After
Width: 768  |  Height: 480  |  Size: 59KB

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

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

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

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

Loading…
取消
儲存