theme_ggprism_mod {scCustomize} | R Documentation |
Modified ggprism theme
Description
Modified ggprism theme which restores the legend title.
Usage
theme_ggprism_mod(
palette = "black_and_white",
base_size = 14,
base_family = "sans",
base_fontface = "bold",
base_line_size = base_size/20,
base_rect_size = base_size/20,
axis_text_angle = 0,
border = FALSE
)
Arguments
palette |
|
base_size |
|
base_family |
|
base_fontface |
|
base_line_size |
|
base_rect_size |
|
axis_text_angle |
|
border |
|
Value
Returns a list-like object of class theme.
References
theme is a modified version of theme_prism
from ggprism package https://github.com/csdaw/ggprism
(License: GPL-3). Param text is from ggprism:theme_prism()
documentation theme_prism
.
Theme adaptation based on ggprism vignette
https://csdaw.github.io/ggprism/articles/themes.html#make-your-own-ggprism-theme-1.
Examples
# Generate a plot and customize theme
library(ggplot2)
df <- data.frame(x = rnorm(n = 100, mean = 20, sd = 2), y = rbinom(n = 100, size = 100, prob = 0.2))
p <- ggplot(data = df, mapping = aes(x = x, y = y)) + geom_point(mapping = aes(color = 'red'))
p + theme_ggprism_mod()