plot.aCGHsegmented {cumSeg}R Documentation

Plot method for the class 'aCGHsegmented'

Description

Plots fitted piecewise constant lines.

Usage

## S3 method for class 'aCGHsegmented'
plot(x, add = FALSE, y = TRUE, psi.lines = TRUE, typeL="l", 
    what=c("lines","criterion"), ...)

Arguments

x

object of class "aCGHsegmented" returned by jumpoints.

add

logical; if TRUE the fitted piecewise constant lines are added to an existing plot.

y

logical; if TRUE the observations are also plotted, otherwise only the fitted lines.

psi.lines

logical; if TRUE vertical lines corresponding to the estimated changepoints are added.

typeL

argument type for the fitted lines. Possible options are ⁠typeL="s"⁠ to plot the horizontal and vertical lines of the step-function, and ⁠typeL="l"⁠ to draw the horizontal lines only.

what

If 'lines' the fitted lines are plotted, otherwise the criterion values versus the number of change points, provided the fitted object x has been called with argument output='2' or output='3'.

...

possible additional graphical arguments, such as col, xlab, and so on.

Details

This fuction takes a fitted object returned by jumpoints and plots the resulting fit, namely the estimated step-function and changepoints.

Value

The function simply plots the fit returned by 'jumpoints'.

Author(s)

Vito Muggeo

See Also

jumpoints


[Package cumSeg version 1.3 Index]