plot.simulate_rate: Plot of simulate_rate object

View source: R/simulate_rate.R

plot.simulate_rateR Documentation

Plot of simulate_rate object

Description

plot method for class 'simulate_rate'.

Usage

## S3 method for class 'simulate_rate'
plot(
  x,
  response = "rate_y",
  xlab = "Simulation timesteps",
  ylab = "Evolutionary rate of y",
  ...
)

Arguments

x

An object of class 'simulate_rate'.

response

The variable for the y-axis of the plot, can be 'rate_y', 'y', or 'x'.

xlab

A label for the x axis.

ylab

A label for the y axis.

...

Additional arguments passed to plot.

Details

No plot is returned if model = 'recent_evol'.

Value

plot A plot of the evolution of the traits x or y, or the evolution of the evolutionary rate of y (i.e. √{a + bx}) in the simulation.

Author(s)

Geir H. Bolstad

Examples

# See the vignette 'Analyzing rates of evolution'.

GHBolstad/evolvability documentation built on Feb. 12, 2023, 5:06 a.m.