plot.simulate_rate: Plot of simulate_rate object

Description Usage Arguments Details Value Author(s) Examples

View source: R/simulate_rate.R

Description

plot method for class 'simulate_rate'.

Usage

1
2
3
4
5
6
7
8
## 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

1
# See the vignette 'Analyzing rates of evolution'.

evolvability documentation built on Dec. 11, 2021, 9:34 a.m.