plot.heatmap | R Documentation |
Visualize the xyz data in a 2d heatmap.
## S3 method for class 'heatmap' plot( x, y, z, nx = 100, ny = 100, na = 0, nlevels = 10, levels = NULL, colors = rev(brewer.pal(11, "Spectral")), bias = 1, ... )
x, y |
the coordinates of each z value. |
z |
the observed value for each (x,y) point. |
nx, ny |
the number of bins in x and y dimension, used by |
na |
replacement for NA value in matrix bins, used by |
nlevels |
the number of colorful stages to plot, see 'filled.contour'. |
levels |
a numeric vector to indicate the colorful stages, see 'filled.contour'. |
colors |
a vector of color names or hex values, see 'colorRampPalette'. |
bias |
a positive number. Higher values give more widely spaced colors at the high end, see 'colorRampPalette'. |
... |
other parameters sent to 'filled.contour'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.