make_galaxy_plot: make_galaxy_plot

View source: R/plotting.R

make_galaxy_plotR Documentation

make_galaxy_plot

Description

Pretty sure Kevin Bi deserve the credit for this code but I've messed around with it some too

Usage

make_galaxy_plot(
  .tbl,
  sample_n = 800,
  x = "UMAP_1",
  y = "UMAP_2",
  pointsize = 0,
  pixels = c(512, 512)
)

Arguments

.tbl

a data frame or tibble with x and y coordinates

sample_n

the number of points to display on top of the density map. Set to 0 to remove all points

x

string designating variable to plot on x-axis

y

string designating variable to plot on y-axis

Value

ggplot object


amyh25/RFunctions documentation built on Aug. 26, 2023, 4:33 p.m.