RnaSeqTutorial-densityPlot: Density plot adapted from the LSD package

Description Usage Arguments Details See Also Examples

Description

Draws a topographic density plot.

Usage

1
densityPlot(x, y, grid = 100, ncol = 30, nlevels = 10, ...)

Arguments

x

a numeric vector for the x axis value

y

a numeric vector for the y axis value

grid

the size of the grid, default to 100

ncol

the number of color to use, default to 30

nlevels

the number of levels passed as argument to the contour function, defaults to 10

...

additional argument passed to the image function.

Details

This function was extracted from the LSD package and was modified to suppress the change of margins

See Also

contour, image and heatscatter

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## TODO add an object after putting results in the data folder
## and use that for plotting the example
data(RST-DataFrame)
sel <- ! is.na(dataFrame$padj)
densityPlot(log10(dataFrame$baseMean),
            dataFrame$log2FoldChange)

## End(Not run)

UPSCb/RnaSeqTutorial documentation built on Nov. 24, 2020, 12:40 a.m.