plot_umap: plot_umap

View source: R/plotting.R

plot_umapR Documentation

plot_umap

Description

Plots a 2D UMAP with the aesthetics that I like

Usage

plot_umap(
  .tbl,
  x = UMAP_1,
  y = UMAP_2,
  color_str = "value",
  pixels = c(512, 512),
  pointsize = 0,
  fix_coords = TRUE,
  label = FALSE,
  textsize = 3,
  label_groups = NULL,
  repel_min_segment_length = 0.1,
  arrange_points = TRUE
)

Arguments

.tbl

a data table with umap cols

x

UMAP 1

y

UMAP 2

pixels

the pixels input to geom_scattermore

pointsize

the pointsize input to geom_scattermore

fix_coords

whether or not to use coord_fixed, TRUE by default

label

bool specifying whether to label the color category

textsize

int specifying textsize; only applies if label=TRUE

label_groups

character vector specifying additional groups to label

repel_min_segment_length

min segment length to pass to geom_text_repel

arrange_points

whether or not to arrange the points so the highest value ones are on top

color

the color to show

Value

ggplot2 object


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