|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Installation |
|
|
## Installation |
|
|
|
|
|
|
|
|
|
|
|
This package isn’t on CRAN, so you’ll need to use the devtools package |
|
|
|
|
|
to install it. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
# If you don't have devtools installed |
|
|
# If you don't have devtools installed |
|
|
install.packages("devtools") |
|
|
install.packages("devtools") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Demo\! |
|
|
## Demo\! |
|
|
|
|
|
|
|
|
We’ll need dplyr and ggplot2 (loaded with **ggpomological**) |
|
|
|
|
|
|
|
|
We’ll need ggplot2 (loaded with **ggpomological**) and dplyr |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
library(ggpomological) |
|
|
library(ggpomological) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
# With pomological colors |
|
|
# With pomological colors |
|
|
basic_iris_plot <- basic_iris_plot + |
|
|
|
|
|
scale_color_pomological() |
|
|
|
|
|
|
|
|
basic_iris_plot <- basic_iris_plot + scale_color_pomological() |
|
|
basic_iris_plot |
|
|
basic_iris_plot |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
# With pomological theme |
|
|
# With pomological theme |
|
|
pomological_iris <- basic_iris_plot + theme_pomological() |
|
|
pomological_iris <- basic_iris_plot + theme_pomological() |
|
|
|
|
|
pomological_iris |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
|
|
|
``` r |
|
|
# With transparent background |
|
|
# With transparent background |
|
|
basic_iris_plot + |
|
|
|
|
|
theme_pomological_nobg() |
|
|
|
|
|
|
|
|
basic_iris_plot + theme_pomological_nobg() |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
# Or with "plain" pomological |
|
|
# Or with "plain" pomological |
|
|
basic_iris_plot + |
|
|
|
|
|
theme_pomological_plain() |
|
|
|
|
|
|
|
|
basic_iris_plot + theme_pomological_plain() |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
# Painted! |
|
|
# Painted! |