View source: R/highlight_labs.R
highlight_labs | R Documentation |
The counterpoint to blank_labs()
, this function makes selected labels bold, italic, and colorful.
highlight_labs(which_lab, txt_col = "#005792", font_face = 4, ...)
which_lab |
Which label to highlight? Accepts a vector of 1 or more numbers or strings:
|
txt_col |
Color of label text; default= "#005792" (Dark GP Hydrogen Blue) |
font_face |
style of highlighted labels and title fonts; 1=plain, 2= bold, 3=italic, 4=bold+italic; default= 4 |
This is used to make teacher graphs where it's clear what students will fill in on the blanked graph.
Other functions for enigmatizing graphs:
blank_labs()
require(ggplot2) ggplot(mtcars,aes(x=mpg,y=hp))+geom_point()+ theme_galactic()+ggtitle("Normal graph") ggplot(mtcars,aes(x=mpg,y=hp))+geom_point()+ theme_galactic()+highlight_labs(c(2,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.