splot: smart plot

View source: R/splot.R

splotR Documentation

smart plot

Description

if n > 10,000, make a random subset of 10,000 and plot. You can also specify a specific subset to plot. If length of subset is larger than n, a random sample is still used to reduce data size.

Usage

splot(x, y, n = 10000, subset = NULL, xlab = NULL, ylab = NULL, ...)

Arguments

x

the x data

y

the y data

n

the number to subset

subset

explicit subset index (optional).

xlab

title for the x-axis

ylab

title for the y-axis

...

further parameters passed on to plot

Examples


x <- rnorm(1e5)
y <- rnorm(1e5)
splot(x,y,pch=16,col=rgb(0,0,0,.25))


rafalib documentation built on April 11, 2025, 5:51 p.m.

Related to splot in rafalib...