|
|
|
|
|
|
|
|
Garrick Aden-Buie |
|
|
Garrick Aden-Buie |
|
|
2/4/2018 |
|
|
2/4/2018 |
|
|
|
|
|
|
|
|
<https://img.shields.io/badge/lifecycle-experimental-orange.svg> |
|
|
|
|
|
|
|
|
|
|
|
## Pomological Plots |
|
|
## Pomological Plots |
|
|
|
|
|
|
|
|
<!-- Links --> |
|
|
<!-- Links --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
|
|
|
## Installation |
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
|
|
|
# If you don't have devtools installed |
|
|
|
|
|
install.packages("devtools") |
|
|
|
|
|
|
|
|
|
|
|
devtools::install_github("gadenbuie/ggpomological") |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
## Color Palette |
|
|
## Color Palette |
|
|
|
|
|
|
|
|
The colors for this theme were drawn from many images from the [USDA |
|
|
The colors for this theme were drawn from many images from the [USDA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
library(ggpomological) |
|
|
library(ggpomological) |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## Loading required package: ggplot2 |
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
|
|
|
library(dplyr) |
|
|
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 |
|
|
### Basic iris plot |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
|
|
|
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-demo-painted.png") |
|
|
magick::image_write("Readme_files/figure-gfm/plot-demo-painted.png") |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
### Stacked bar chart |
|
|
### Stacked bar chart |
|
|
|
|
|
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-bar-chart-painted.png") |
|
|
magick::image_write("Readme_files/figure-gfm/plot-bar-chart-painted.png") |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
### Density Plot |
|
|
### Density Plot |
|
|
|
|
|
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-density-demo-painted.png") |
|
|
magick::image_write("Readme_files/figure-gfm/plot-density-demo-painted.png") |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
### Points and lines |
|
|
### Points and lines |
|
|
|
|
|
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-full-bar-stack-painted.png") |
|
|
magick::image_write("Readme_files/figure-gfm/plot-full-bar-stack-painted.png") |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
### One last plot |
|
|
### One last plot |
|
|
|
|
|
|
|
|
(in my handwriting) |
|
|
|
|
|
|
|
|
Using my own handwriting and the `ggridges` package. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
ridges_pomological <- ggplot(diamonds) + |
|
|
ridges_pomological <- ggplot(diamonds) + |
|
|
|
|
|
|
|
|
magick::image_write("Readme_files/figure-gfm/plot-ridges-painted.png") |
|
|
magick::image_write("Readme_files/figure-gfm/plot-ridges-painted.png") |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Warning: Cannot find file "" |
|
|
|
|
|
|
|
|
|
|
|
## Picking joint bandwidth of 0.057 |
|
|
## Picking joint bandwidth of 0.057 |
|
|
|
|
|
|
|
|
 |
|
|
 |