plot.rate_gls: Plot of rate_gls object

Description Usage Arguments Details Value Author(s) Examples

View source: R/rate_gls.R

Description

plot method for class 'rate_gls'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class '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.

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.

Value

plot returns a plot of the gls rate regression

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.