View source: R/plot_through_time.R
This functions makes plots to track the advancement of the simulation through time.
1 2 |
data |
A data frame containing coordinates along the three isolation axes (spatial, ecological and mating), or even other variables, through time. Individual simulations are in rows. |
var |
The variable of interest. |
type |
Either 1 – shows lines for all simulations, 2 – shows median and specified quantiles, 3 – shows mean and standard error. |
colvar |
Optional. The variable used to assign different colors to different groups of simulations. |
xlim, ylim |
Plot limits (optional). |
quantiles |
The quantiles to use as borders of shaded areas (only if type == 2). |
cols |
A vector of colors to use for each group, only if colvar is specified. |
show_legend |
Whether to display the legend. Defaults to FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.