plot_projected_trajectories: Plot simulations

Description Usage Arguments

View source: R/plot_projected_trajectories.R

Description

This functions plots the simulations in 2D, along chosen dimensions.

Usage

1
2
plot_projected_trajectories(speciation_cube_data, vars, colvar,
  show_legend = T, xlim, ylim, confint, col, add = F)

Arguments

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.


rscherrer/epianalysis documentation built on May 26, 2019, 2:32 p.m.