Learn R Programming

metaseqR (version 1.12.2)

diagplot.cor: Summarized correlation plots

Description

This function uses the read counts matrix to create heatmap or correlogram correlation plots.

Usage

diagplot.cor(mat, type = c("heatmap", "correlogram"),
        output = "x11", path = NULL, ...)

Arguments

mat
the read counts matrix or data frame.
type
create heatmap of correlogram plots.
output
one or more R plotting device to direct the plot result to. Supported mechanisms: "x11" (default), "png", "jpg", "bmp", "pdf" or "ps".
path
the path to create output files.
...
further arguments to be passed to plot devices, such as parameter from par.

Value

  • The filename of the pairwise comparisons plot produced if it's a file.

Examples

Run this code
require(DESeq)
data.matrix <- counts(makeExampleCountDataSet())
diagplot.cor(data.matrix,type="heatmap")
diagplot.cor(data.matrix,type="correlogram")

Run the code above in your browser using DataLab