|
|
|
@@ -3,8 +3,6 @@ Pomological Colors |
|
|
|
Garrick Aden-Buie |
|
|
|
2/4/2018 |
|
|
|
|
|
|
|
<https://img.shields.io/badge/lifecycle-experimental-orange.svg> |
|
|
|
|
|
|
|
## Pomological Plots |
|
|
|
|
|
|
|
<!-- Links --> |
|
|
|
@@ -17,6 +15,15 @@ parameterized RMarkdown](https://youtu.be/Ol1FjFR2IMU?t=5h21m15s) at |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
## Installation |
|
|
|
|
|
|
|
``` r |
|
|
|
# If you don't have devtools installed |
|
|
|
install.packages("devtools") |
|
|
|
|
|
|
|
devtools::install_github("gadenbuie/ggpomological") |
|
|
|
``` |
|
|
|
|
|
|
|
## Color Palette |
|
|
|
|
|
|
|
The colors for this theme were drawn from many images from the [USDA |
|
|
|
@@ -89,25 +96,9 @@ We’ll need dplyr and ggplot2 (loaded with **ggpomological**) |
|
|
|
|
|
|
|
``` r |
|
|
|
library(ggpomological) |
|
|
|
``` |
|
|
|
|
|
|
|
## Loading required package: ggplot2 |
|
|
|
|
|
|
|
``` r |
|
|
|
library(dplyr) |
|
|
|
``` |
|
|
|
|
|
|
|
## |
|
|
|
## Attaching package: 'dplyr' |
|
|
|
|
|
|
|
## The following objects are masked from 'package:stats': |
|
|
|
## |
|
|
|
## filter, lag |
|
|
|
|
|
|
|
## The following objects are masked from 'package:base': |
|
|
|
## |
|
|
|
## intersect, setdiff, setequal, union |
|
|
|
|
|
|
|
### Basic iris plot |
|
|
|
|
|
|
|
``` r |
|
|
|
@@ -147,8 +138,6 @@ paint_pomological(pomological_iris, res = 110) %>% |
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-demo-painted.png") |
|
|
|
``` |
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
### Stacked bar chart |
|
|
|
@@ -175,8 +164,6 @@ paint_pomological( |
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-bar-chart-painted.png") |
|
|
|
``` |
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
### Density Plot |
|
|
|
@@ -204,8 +191,6 @@ paint_pomological( |
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-density-demo-painted.png") |
|
|
|
``` |
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
### Points and lines |
|
|
|
@@ -250,13 +235,11 @@ paint_pomological( |
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-full-bar-stack-painted.png") |
|
|
|
``` |
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
### One last plot |
|
|
|
|
|
|
|
(in my handwriting) |
|
|
|
Using my own handwriting and the `ggridges` package. |
|
|
|
|
|
|
|
``` r |
|
|
|
ridges_pomological <- ggplot(diamonds) + |
|
|
|
@@ -274,8 +257,6 @@ paint_pomological(ridges_pomological, res = 110) %>% |
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-ridges-painted.png") |
|
|
|
``` |
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
## Picking joint bandwidth of 0.057 |
|
|
|
|
|
|
|
 |