densityscatter: Compute density of a scatterplot

Description Usage Arguments Author(s) See Also Examples

View source: R/quality_control.R

Description

A 2d density is computed by kde2D.

Usage

1
densityscatter(x,y,pch=19,cex=1,ncol=30,grid=100,palette="heat", add=F,...)

Arguments

x

x coordinate of data

y

y coordinate of data

pch

type of point

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default

grid

Number of grid points in each direction

ncol

number of colors

palette

color palette to choose

add

should data points be added to an exisiting plot?

...

parameters passed to plot or points

Author(s)

Benedikt Zacher zacher@lmb.uni-muenchen.de

See Also

kde2dplot

Examples

1
2
3
4
5
6
7
##
points = 10^4
x <- rnorm(points/2)
x = c(x,x+2.5)
y <- x + rnorm(points,sd=0.8)
x = sign(x)*abs(x)^1.3
densityscatter(x,y)

Starr documentation built on April 28, 2020, 7:52 p.m.