AutoPointSize: Automagically calculate a point size for ggplot2-based...

View source: R/visualization.R

AutoPointSizeR Documentation

Automagically calculate a point size for ggplot2-based scatter plots

Description

It happens to look good

Usage

AutoPointSize(data, raster = NULL)

Arguments

data

A data frame being passed to ggplot2

raster

If TRUE, point size is set to 1

Value

The "optimal" point size for visualizing these data

Examples

df <- data.frame(x = rnorm(n = 10000), y = runif(n = 10000))
AutoPointSize(data = df)


satijalab/seurat documentation built on May 11, 2024, 4:04 a.m.