Learn R Programming

evolvability (version 2.0.0)

plot.simulate_rate: Plot of simulate_rate object

Description

plot method for class 'simulate_rate'.

Usage

# S3 method for 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.

Value

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

Details

No plot is returned if model = 'recent_evol'.

Examples

Run this code
# NOT RUN {
# See the vignette 'Analyzing rates of evolution'.
# }

Run the code above in your browser using DataLab