scattermoreplot | R Documentation |
Convenience base-graphics-like layer around scattermore. Currently only works with linear axes!
scattermoreplot(
x,
y,
xlim,
ylim,
size,
col = grDevices::rgb(0, 0, 0, 1),
cex = 0,
pch = NULL,
xlab,
ylab,
...
)
x, y, xlim, ylim, xlab, ylab, ... |
used as in |
size |
forwarded to |
col |
point color(s) |
cex |
forwarded to |
pch |
ignored (to improve compatibility with |
# plot an actual rainbow
library(scattermore)
d <- data.frame(s = qlogis(1:1e6 / (1e6 + 1), 6, 0.5), t = rnorm(1e6, pi / 2, 0.5))
scattermoreplot(
d$s * cos(d$t),
d$s * sin(d$t),
col = rainbow(1e6, alpha = .05)[c((9e5 + 1):1e6, 1:9e5)],
main = "scattermore demo"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.