Learn R Programming

evolvability (version 2.0.0)

plot.rate_gls: Plot of rate_gls object

Description

plot method for class 'rate_gls'.

Usage

# S3 method for rate_gls
plot(
  x,
  scale = "SD",
  print_param = TRUE,
  digits_param = 2,
  digits_rsquared = 1,
  main = "GLS regression",
  xlab = "x",
  ylab = "Response",
  col = "grey",
  cex.legend = 1,
  ...
)

Arguments

x

An object of class 'rate_gls'.

scale

The scale of the y-axis, either the variance scale ('VAR'), that is y^2, or the standard deviation scale ('SD'), that is abs(y).

print_param

logical: if parameter estimates should be printed in the plot or not.

digits_param

The number of significant digits displayed for the parameters in the plots.

digits_rsquared

The number of decimal places displayed for the r-squared.

main

as in plot.

xlab

as in plot.

ylab

as in plot.

col

as in plot.

cex.legend

A character expansion factor relative to current par("cex") for the printed parameters.

...

Additional arguments passed to plot.

Value

plot returns a plot of the gls rate regression

Details

Plots the gls rate regression fitted by the rate_gls function. The regression line gives the expected variance or standard deviation (depending on scale). The regression is linear on the variance scale.

Examples

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

Run the code above in your browser using DataLab