heatmap | R Documentation |
Produces a heatmap showing 2D density for high resolution FTMS data, as an alternative to traditional scatter plots,
which may be difficult to understand or render onscreen when there are too many points. This function is used
by vanKrevelenPlot
and kendrickPlot
when the input object contains more than
10^6 cells of data (# samples by # rows).
heatmap(
ftmsObj,
xCName,
yCName,
xBreaks = 100,
yBreaks = 100,
colorPal = NA,
title = NA,
xlabel = NA,
ylabel = NA,
mouseovers = TRUE
)
ftmsObj |
an object of class 'peakData' or 'compoundData', typically a result of |
xCName |
column name for x-axis, must be a column of |
yCName |
column name for y-axis, must be a column of |
xBreaks |
either a number of breaks (bins) along the x-axis, or a vector of break endpoints |
yBreaks |
either a number of breaks (bins) along the y-axis, or a vector of break endpoints |
colorPal |
color palette function, one of |
title |
plot title |
xlabel |
x axis label, default is |
ylabel |
y axis label, default is |
mouseovers |
TRUE/FALSE, should mouseovers be constructed? Uses xlabel, ylabel values. |
Amanda M. White
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.