plot_through_time: Plot simulation metric through time

Description Usage Arguments

View source: R/plot_through_time.R

Description

This functions makes plots to track the advancement of the simulation through time.

Usage

1
2
plot_through_time(data, var, type = 1, colvar, xlim, ylim, quantiles,
  cols, show_legend = F)

Arguments

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.


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