Learn R Programming

cn.farms (version 1.20.0)

plotRegions: Plots given regions by segments

Description

A pdf in the working directory is produced.

Usage

plotRegions(object, segments, addInd = NULL, ylim, variable, colorVersion = 0, plotLegend = TRUE, pdfname)

Arguments

object
An instance of ExpressionSet
segments
An instance of ExpressionSet with the segments to plot
addInd
States how many indices should be plotted besides the region
ylim
The limits for the y axis.
variable
States which variable of the assayData should be plotted.
colorVersion
States different color versions.
plotLegend
If a legend should be plotted or not.
pdfname
The name of the pdf file.

Value

A graph. Normally a pdf in the current work directory.

Examples

Run this code
load(system.file("exampleData/slData.RData", package = "cn.farms"))
load(system.file("exampleData/testSegments.RData", package = "cn.farms"))
plotRegions(slData, testSegments, addInd = 10, ylim = c(-2, 2),
        variable = "L_z", colorVersion = 1, plotLegend = TRUE,
        pdfname = "slData.pdf")

Run the code above in your browser using DataLab