census.plot: Plots census means across simulated time steps

Description Usage Arguments Details Value

View source: R/plots.R

Description

It takes as data input the output from collate.census (it reads data directly from xls files).

Usage

1
2
census.plot(path.results = NULL, scenarios = "all", traits,
  ncensus = 0, ngroups = 1, rm.T0 = TRUE, keep.zeros = "TRUE")

Arguments

path.results

The path to the 'Results' folder

scenarios

A character vector with the scenarios to be processed or "all"

traits

A character vector with the name of the traits to be included

ncensus

The number of the census to be considered

ngroups

The number of groups in which the scenarios are to be divided

rm.T0

Whether to remove the first row of data. Relevant when it is Time Step '0' (default=TRUE)

keep.zeros

Whether zeros were kept or not when census files were collated

Details

rm.T0 is generally used to remove the the first row of data. This makes sense when all time steps were logged, but there is little meaning in keeping in time zero as this is the initialization step.

keep.zeros is used to indicate the value used for this argument when collate.census was run.

Value

Save to disk ggplot objects (with extension .rda) and pdf with the plots (one for each group). Return a list of plots


carlopacioni/HexSimR documentation built on April 15, 2019, 10:48 a.m.