plot_binary_on_umap: plot_binary_on_umap

View source: R/plotting.R

plot_binary_on_umapR Documentation

plot_binary_on_umap

Description

Plots a binary variable on UMAP

Usage

plot_binary_on_umap(
  metadata_df,
  binary_var,
  grouping_strs = NA,
  umap1 = "UMAP_1",
  umap2 = "UMAP_2",
  color_str = "red",
  pt_size = 0.5,
  pt_stroke = 0.1,
  pt_alpha = 0.5,
  x_pos = NA,
  y_pos = NA
)

Arguments

metadata_df

data frame with umap coordinates and binary variable

binary_var

binary variable, must be TRUE/FALSE

grouping_strs
umap1

string denoting UMAP_1 (optional; default: UMAP_1)

umap2

string denoting UMAP_2 (optional; default: UMAP_2)

color_str

string denoting the color of detected cells (default: red)

pt_size

size of points in geom_point (default: 0.5)

pt_stroke

stroke of points in geom_point (default: 0.1)

pt_alpha

transparency of points in geom_point (default: 0.5)

x_pos

x position of count text (default: NA, sets to xmax)

y_pos

y position of count text (default: NA, sets to ymax)

Value

a ggplot object


amyh25/Rsc documentation built on Jan. 29, 2024, 7:22 a.m.