Description Usage Arguments See Also Examples
A theme for [ggplot2] with color blind friendly palettes for use members of the McCall Lab.
1 2 3 4 5 6 7 | theme_mnmlab(
text_size = 11,
title_size = 14,
text_color = "black",
panel_grid_linetype = "18",
base_theme = ggplot2::theme_linedraw()
)
|
text_size |
Font size for axis text. Legend text will scale by 0.8. Defaults to 17pt. |
title_size |
Font size for title text. Subtitle will scale by 0.9 and axis title will scale by 0.8. Defaults to 21pt. |
text_color |
Color for all text in plot. Defaults to black. |
panel_grid_linetype |
Line type for grid lines in plot. Defaults to 18, a dotted line with 1px on followed by 8px off. |
base_theme |
Underlying theme to build from. Defaults to linedraw, displaying a margin outline for the plot and gridlines. |
[ggplot2::theme]
1 2 3 4 5 6 7 | library(ggplot2)
library(palmerpenguins)
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, color = species)) +
scale_color_mnmlab(palette = "martink8") +
theme_mnmlab()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.