Description Usage Arguments Details Value Examples
View source: R/data_plotting.R
line_plot_year
generates line plots of the selected Vortex parameters
for the selected populations, for all simulated years.
1 2 3 4 5 6 7 8 9 | line_plot_year(
data,
project,
scenario,
params = c("PExtinct", "Nextant", "Het", "Nalleles"),
plotpops = c("all"),
save2disk = TRUE,
dir_out = "Plots"
)
|
data |
A df from |
project |
Vortex project name (used to name the output) |
scenario |
Vortex scenario name (used to name the output) |
params |
Vortex parameters to be plotted, default: c('PExtinct', 'Nextant', 'Het', 'Nalleles') |
plotpops |
The populations to be included in the plot, default: 'all' |
save2disk |
Whether to save the output to disk, default: TRUE |
dir_out |
The local path to store the output. Default: Plots |
Plots are ggplot objects. When save2disk=TRUE
these are saved as .rda
and .pdf files
Line plot(s)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.