extract_plot | R Documentation |
Extract a plot corresponding to one or several variables from a ggplot.
extract_plot(
plot,
var = NULL,
situation = NULL,
force = FALSE,
verbose = TRUE,
situations = lifecycle::deprecated()
)
plot |
The output of plot_situations. |
var |
Vector of variable names for which plots have to be extracted. Optional, all variables considered by default. |
situation |
A list of situations names to extract from a list of ggplots |
force |
Continue if the plot is not possible ? E.g. no observations for
scatter plots. If |
verbose |
Logical value for displaying information while running. |
situations |
A (printed) list of ggplot objects, each element being a plot for a situation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.