Description Usage Arguments Details Value Author(s) See Also Examples
Create plots for inclusion in RMarkdown reports
1 |
fig |
A ggplot2 plot for processing. |
format |
A character vector of length one describing the desired output format. |
envir |
Environment to use to look for variables used in the plot. If
|
the envir
argument should only be needed if local variables
that are not part of the data
argument are used in the plot and the
plot is evaluated in an environment that differs from the environment
where it was originally created. This happens when plotting figures that were
created in a child document while use_namespace: true is in force.
Depending on the value of format
either a ggplot2 object
(possibly the same as fig
) or, if format = 'interactive'
a plotly
plot.
Peter Humburg
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.