theme_lucas | R Documentation |
Requires the hrbrthemes
package and the PT Sans
and PT Sans Narrow
fonts from Google Fonts.
theme_lucas()
list of ggproto objects
Sarah Lucas salucas@umich.edu
library(ggplot2)
library(showtext)
# run once to download the PT Sans fonts
font_add_google(name = "PT Sans", family = "PT Sans")
font_add_google(name = "PT Sans Narrow", family = "PT Sans Narrow")
showtext_auto()
# make a plot with theme_lucas()
ggplot(mtcars) +
aes(x = mpg, y = wt, color = cyl) +
geom_point() +
theme_lucas()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.