Learn R Programming

Seurat (version 5.0.3)

AutoPointSize: Automagically calculate a point size for ggplot2-based scatter plots

Description

It happens to look good

Usage

AutoPointSize(data, raster = NULL)

Value

The "optimal" point size for visualizing these data

Arguments

data

A data frame being passed to ggplot2

raster

If TRUE, point size is set to 1

Examples

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

Run the code above in your browser using DataLab