R: scattermoreplot

scattermoreplot {scattermore} | R Documentation

## scattermoreplot

### Description

Convenience base-graphics-like layer around scattermore. Currently only works with linear axes!

### Usage

    scattermoreplot(
      x,
      y,
      xlim,
      ylim,
      size,
      col = grDevices::rgb(0, 0, 0, 1),
      cex = 0,
      pch = NULL,
      xlab,
      ylab,
      ...
    )

### Arguments

`x, y, xlim, ylim, xlab, ylab, ...` | used as in `graphics::plot()` or forwarded to `graphics::plot()`
`size` | forwarded to `scattermore()`, or auto-derived from device and plot size if missing (the estimate is not pixel-perfect on most devices, but gets pretty close)
`col` | point color(s)
`cex` | forwarded to `scattermore()`
`pch` | ignored (to improve compatibility with `graphics::plot()`

### Examples

    # plot an actual rainbow
    library(scattermore)
    d <- data.frame(s=qlogis(1:1e7/(1e7+1), 6, 0.5), t=rnorm(1e7, pi/2, 0.5))
    scattermoreplot(
      d$s*cos(d$t),
      d$s*sin(d$t),
      col=rainbow(1e7, alpha=.01)[c((9e6+1):1e7, 1:9e6)],
      main="scattermore demo")

[Package scattermore version 0.7 Index]