View source: R/plot_projected_trajectories.R
This functions plots the simulations in 2D, along chosen dimensions.
1 2 | plot_projected_trajectories(speciation_cube_data, vars, colvar,
show_legend = T, xlim, ylim, confint, col, add = F)
|
speciation_cube_data |
A data frame containing coordinates along the three isolation axes (spatial, ecological and mating) through time. Individual simulations are in rows. |
vars |
The two variables along which to plot the simulations. |
colvar |
Optional. The name of the variable to use to set colors according to. |
show_legend |
Optional. Whether to show the legend. |
xlim, ylim |
Ranges of values to plot. |
confint |
Confidence interval probabilities. If specified, the confidence interval is plotted instead of every single line. To plot mean and standard error instead of a confidence interval, provide this argument with an object of length different than 2 (which is what the function expects as boundaries of the confidence interval). |
col |
Color to plot the lines or the confidence interval. If specified, overrides the coloration per parameter value, if any. |
add |
Whether to append to a previous plot. Defaults to FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.