View source: R/assemble-graphs.R
params2gp | R Documentation |
Converts the elements of a elemnt_text specification from ggplot2 into the graphical parameter vector that is needed for grid graphics.
params2gp(p, bs)
p |
Parameter vector from a ggplot object, as specified in the plot's theme. |
bs |
The base size of the fonts in the ggplot plot. This is necessary for cases where the font size in the parameter vector is expressed as a relative size. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.