spwt: Scatter plot with transparency

Description Usage Arguments Value Author(s) Examples

Description

An alternative to a graphics::smoothScatter that actually plots all points but uses transparency to avoid overplotting. Recommended to me by Kasper Hansen.

Usage

1
spwt(x, y, col = scales::alpha("black", 0.01), pch = 16, cex = 0.5, ...)

Arguments

x, y

The x and y values to be plotted

col

The colour transparency to be used

pch, cex

See graphics::points

...

Other arguments passed to graphics::plot

Value

The plot

Author(s)

Peter Hickey based on recommendation of Kasper Hansen

Examples

1
spwt(rpois(10000, 5) + rnorm(10000, sd = 0.1), rpois(10000, 5) + rnorm(10000, sd = 0.1))

PeteHaitch/repete documentation built on May 8, 2019, 1:32 a.m.