scatter.thinning: Remove points from a scatter plot where density is really...

View source: R/plots.R

scatter.thinningR Documentation

Remove points from a scatter plot where density is really high

Description

Remove points from a scatter plot where density is really high

Usage

scatter.thinning(x, y, resolution = 100, max.per.cell = 100)

Arguments

x

x-coordinates vector

y

y-coordinates vector

resolution

number of partitions for the x and y-dimensions.

max.per.cell

maximum number of points per x-y partition.

Value

index into the points that omits points from x-y partitions so that each has at most max.per.cell points.


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.