Learn R Programming

LSD (version 2.0)

heatscatter: Heat scatter

Description

A colored scatterplot based on a 2d density computed by kde2d.

Usage

heatscatter(x, y, pch = 19, cexplot = 0.5, ncol = 30, grid = 100, colpal = "heat", xlim = NULL, ylim = NULL, main = NULL, cor = TRUE, method = "spearman", alpha = NULL, add.contour = FALSE, nlevels = 10, color.contour = "black", greyscale = FALSE, ...)

Arguments

x
x-vector
y
y-vector
pch
plotting character
cexplot
cex of the points
ncol
the number of colors to use
grid
size of the grid ( see kde2d )
colpal
which colorpalette should be chosen ( see disco() )
xlim
xlimits, standard graphics parameter
ylim
ylimits, standard graphics parameter
main
the title of the plot
cor
should the correlation be added to the title
method
correlation method
alpha
alpha value for color opacity
add.contour
should the contour lines be added
nlevels
number of levels of the contour lines
color.contour
color of the contour lines
greyscale
should the colorpalette be in greyscales
...
additional parameters to be passed to points and plot

See Also

heatpairs,heatmapairs,LSD.demo.tour

Examples

Run this code
demo.heatscatter()

Run the code above in your browser using DataLab