PlotModel: Plot model

View source: R/visualization.tools.R

PlotModelR Documentation

Plot model

Description

This function plots a graphical representation of your model.

Usage

PlotModel(
  model,
  use.alpha = F,
  average.of.priors = F,
  xlab = "Population",
  ylab = "Time before present (generations)",
  axes = T
)

Arguments

model

A model object generated in the main.menu.

use.alpha

Logical. If TRUE the most recent population size change will be exponential. If FALSE sudden demographic changes. Default is FALSE. This argument changes ONLY the MOST RECENT demographich change. You should indicate the population numbers for the exponential change toguether with the logical argument in a vector. Ex.c(T,1,2)

average.of.priors

logical. if TRUE parameters for the plot will be equal to the average of prior values.

axes

logical. if TRUE plot axes with models. Default is TRUE.

Value

Graphic

Author(s)

Marcelo Gehara. This function is a wrapper of the PlotMS function of the POPDemog package.


gehara/PipeMaster documentation built on April 19, 2024, 8:14 a.m.