themes | R Documentation |
Complete ggplot2 themes.
acid_theme_light(
base_size = 14L,
base_family = "",
face = c("bold", "plain"),
aspect_ratio = NULL,
legend_position = c("right", "bottom", "top", "none"),
grid = FALSE,
minimal = FALSE
)
acid_theme_dark(
base_size = 14L,
base_family = "",
face = c("bold", "plain"),
aspect_ratio = NULL,
legend_position = c("right", "bottom", "top", "none"),
grid = FALSE,
minimal = FALSE
)
acid_theme_dracula(
base_size = 14L,
base_family = "",
face = c("bold", "plain"),
aspect_ratio = NULL,
legend_position = c("right", "bottom", "top", "none"),
grid = FALSE,
minimal = FALSE
)
base_size |
|
base_family |
|
face |
|
aspect_ratio |
|
legend_position |
|
grid |
|
minimal |
|
Themes are based off of ggplot2::theme_linedraw()
, but with modifications
and extra user-definable parameters.
theme
.
acid_theme_light()
: Light theme that has a white background and black text.
Optimized for print and recommended for scientific manuscripts.
See lightPalette
for color values.
acid_theme_dark()
: Dark theme that has a black background and white text.
Inspired by Seurat::DarkTheme()
, with some color modifications.
Useful for visualizing many points with a high dynamic color range, such
dimension reduction plots.
See darkPalette
for color values.
acid_theme_dracula()
: Dark theme that uses Dracula color palette.
See draculaPalette
for color values.
Updated 2019-09-13.
ggplot2::theme()
.
https://cran.r-project.org/web/packages/ggplot2/vignettes/ extending-ggplot2.html
library(ggplot2)
p <- ggplot(
data = mpg,
mapping = aes(
x = manufacturer,
y = displ,
color = manufacturer,
fill = manufacturer
)
) +
geom_point()
## Light theme.
p + acid_theme_light(legend_position = "none")
## Dark theme.
p + acid_theme_dark(legend_position = "none")
## Dracula theme.
p + acid_theme_dracula(legend_position = "none")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.