View source: R/save_plot_template.R
Exporting Plots for use in LaTeX
1 2 3 4 5 6 7 8 9 | save_plot_template(
plot_object = ggplot2::last_plot(),
filenames,
pdfwidth,
pdfheight,
latexwidth = 1,
latexlabel,
latexcaption
)
|
plot_object |
Plot to save. Defaults to last_plot() |
filenames |
name of the .tex and .pdf files |
pdfwidth |
Width of the .pdf file in inches |
pdfheight |
Height of the .pdf file in inches |
latexwidth |
Proportion of the linewidth to use in LaTeX. Defaults to 1 |
latexlabel |
LaTeX label for referencing the plot in the LaTeX document |
latexcaption |
Figure Caption in LaTeX |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.