View source: R/assemble-graphs.R
build_label_grob | R Documentation |
Extracts the necessary information from a ggplot object to convert one of the labels (title, subtitle, caption, or tag) into a textbox_grob.
build_label_grob(label_type, plot, w = grid::unit(6.5, "in"))
label_type |
Character scalar giving the label to convert to a grob. |
plot |
A ggplot graph |
w |
The width of the plot expressed as a grid unit. Default is ‘unit(6.5, ’in')'. |
A textbox_grob from the gridtext package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.