Learn R Programming

destiny (version 2.0.4)

plot.Sigmas: Plot

Description

Plot Sigmas object

Usage

# S4 method for Sigmas,missing
plot(x, col = par("fg"),
  col_highlight = "#E41A1C", col_line = "#999999", type = c("b", "b"),
  pch = c(par("pch"), 4L), only_dim = FALSE, ..., xlab = NULL,
  ylab = NULL, main = "")

Arguments

x
Sigmas object to plot
col
Vector of bar colors or single color for all bars
col_highlight
Color for highest bar. Overrides col
col_line
Color for the line and its axis
type
Plot type of both lines. Can be a vector of length 2 to specify both separately (default: 'b' aka “both lines and points”)
pch
Point identifier for both lines. Can be a vector of length 2 to specify both separately (default: par(pch) and 4 (a ‘\(\times\)’))
only_dim
logical. If TRUE, only plot the derivative line
...
Options passed to the call to plot
xlab
X label. NULL to use default
ylab
Either one y label or y labels for both plots. NULL to use both defauts, a NULL in a list of length 2 to use one default.
main
Title of the plot

Value

This method plots a Sigma object to the current device and returns nothing/NULL

Examples

Run this code
data(guo)
sigs <- find_sigmas(guo)
plot(sigs)

Run the code above in your browser using DataLab