Learn R Programming

plrs (version 1.12.0)

plot-methods: Plot functions in package 'plrs'

Description

Methods plot in package 'plrs'

Usage

"plot"(x, col.line = "black", col.pts = c("red", "blue","green2", "green4"), col.cb = "yellow", xlim = c(floor(min(x@data$cghseg)),ceiling(max(x@data$cghseg))), ylim = c(floor(min(x@data$expr)),ceiling(max(x@data$expr))), pch = 16, lwd=4, cex = 1.2, xlab="", ylab="", main = "", add = FALSE, lty = 1, lin = FALSE, ...)

Arguments

x
An object of class plrs-class or plrs.select-class
col.line
Color of the fitted line
col.pts
Vector of length 4, for colors associated with each state
col.cb
Color for the confidence band
xlim
The x limits of the plot
ylim
The y limits of the plot
pch
See par
lwd
See par
cex
See par
xlab
Title of the x-axis
ylab
Title of the y-axis
main
Main title for the plot
add
If the plot should be added to the current device. Default is FALSE
lty
See par
lin
Logical. Whether the simple linear model should also be plotted
...
Other arguments, see par

Methods

signature(x = "plrs")
Plot observed points and the fitted line
signature(x = "plrs.select")
Plot observed points and the fitted line of the selected model.

Details

plot.plrs plots the observed points, the fitted line and potentially the confidence band.