View source: R/theme_tadaark.R
theme_tadaark | R Documentation |
Because, according to Financial Times Datavizard John Burn-Murdoch, "they look cool".
theme_tadaark(
title.size = 16,
text.size = 14,
legend.position = "top",
show.axis = FALSE,
show.grid = TRUE,
plot.margin = c(0.8, 0.4, 0.4, 0.8),
font.base = "Roboto Condensed"
)
title.size |
title element size in pts. |
text.size |
text element size in pts. |
legend.position |
either one of "none", "left", "right", "bottom", "top". |
show.axis |
boolean or "x", "y"; should axis be drawn? Which?. |
show.grid |
boolean; should grid lines be drawn?. |
plot.margin |
margin around entire plot (unit with the sizes of the top, right, bottom, and left margins). |
font.base |
The base font, defaulting to |
Using this function changes the default color for many geoms via
ggplot2::update_geom_defaults
, which, unfortunately, is rather complicated
to undo. One easy but blunt way is to restart your R session.
Use hrbrthemes::import_roboto_condensed()
to install Roboto Condensed.
https://twitter.com/jburnmurdoch/status/1231235675229491200
## Not run:
library(ggplot2)
p <- ggplot(iris, aes(x = Sepal.Width)) +
geom_histogram(binwidth = .25) +
labs(
title = "Yet another iris plot",
subtitle = "Using theme_tadaark",
caption = "Oh hi there, didn't see you walk in"
)
p + theme_tadaark()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.