knitr::opts_chunk$set( eval = FALSE, collapse = TRUE, comment = '#>', fig.path = 'man/figures/README-', out.width = '100%' )
{tonythemes}
is a package that I use for custom themes.
You can install the development version of {tonythemes}
from GitHub with:
# install.packages('remotes') remotes::install_github('tonyelhabr/tonythemes')
library(tidyverse) library(tonythemes) pal <- palette_sliced(5)[c(1, 5)] p <- mtcars %>% mutate(across(am, factor)) %>% ggplot() + aes(x = mpg, y = wt) + geom_point(aes(color = am), size = 5) + scale_color_manual(values = pal) + theme_tony() p
p + annotate_nickwan(x = 30, y = 4, size = 0.2) + annotate_megrisdal(x = 25, y = 5, size = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.