R/PScatter.R

Defines functions PScatter

PScatter <- function(x, y, PApp = NULL)
{
    if(length(x) != length(y)) stop("length of 'x' and 'y' do not match.")
    x <- as.integer(x)
    y <- as.integer(y)

    if(is.null(PApp)) PApp <- PApplet("PScatter")
    PSet(PApp,"setXY", x, y)
    PResize(PApp, max(x), max(y))

    invisible(PApp)
}

Try the rProcessing package in your browser

Any scripts or data that you put into this service are public.

rProcessing documentation built on May 2, 2019, 4:55 p.m.