View source: R/assemble-graphs.R
save_kpb_graph | R Documentation |
Converts a ggplot2 graphic into an output format that files the style I like to use.
save_kpb_graph(
filename,
plot = last_plot(),
device = NULL,
width = 6.5,
units = "in"
)
filename |
Character vector giving the output file path |
plot |
Ggplot graph to save. Default's to the last plot. |
device |
A graphical device to use to print to. Default is NULL in which case the device will be assumed based on the extension given the output file. |
width |
Numerical scalar giving the width of the output. Default is 6.5. |
units |
Character scalar giving the units in which the width is provided. Default equals 'in'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.