line_plot_year_mid | R Documentation |
line_plot_year_mid
generates line plots of the selected Vortex parameters
for the selected populations, from year zero to yrmid. The purpose of these
plots is to 'zoom' in the initial phase of the simulations to better
appreciate dynamics of the parameters of interest.
line_plot_year_mid( data, project, scenario, yrmid = 1, 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) |
yrmid |
The last year to plot |
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)
# Using Pacioni et al. example data. See ?pac.clas for more details. data(pac.clas) lineMidPlot.st.classic <- line_plot_year_mid(data=pac.clas, project='Pacioni_et_al', scenario='ST_Classic', yrmid=50, params=c('PExtinct', 'Nextant', 'Het', 'Nalleles'), save2disk=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.