add_quadrant_labels: Add quadrant labels to a ggplot representing a scatterplot

View source: R/Visualizations_general.R

add_quadrant_labelsR Documentation

Add quadrant labels to a ggplot representing a scatterplot

Description

This function takes in a ggplot that is representing a scatterplot, a horizontal y coordinate, and a vertical x coordinate, and adds quadrant boundaries and text labels to the plot to indicate how many points are in each section of the scatterplot.

Usage

add_quadrant_labels(plot, x, y)

Arguments

plot

ggplot object representing a scatterplot

x

horizontal y coordinate to separate the quadrants

y

vertical x coordinate to separate the quadrants

Value

ggplot object with quadrant boundaries and text labels added


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.