PlotSingleExpProb: PlotSingleExpProb

View source: R/CELESTA_functions.R

PlotSingleExpProbR Documentation

PlotSingleExpProb

Description

Plots the expression probabilities of cells in the tissue. This is use soley for the Shiny app.

Usage

PlotSingleExpProb(
  coords,
  marker_exp_prob,
  cols = NULL,
  marker_to_use,
  size_to_use = 1,
  width_to_use = 5,
  height_to_use = 4,
  save_plot = TRUE,
  output_dir = "."
)

Arguments

coords

the x, y coordinates of each cell

marker_exp_prob

the marker expression probability for each cell

cols

the color palette for the plot

marker_to_use

marker to plot

size_to_use

the size of the points in the plot

width_to_use

the width of the plot

height_to_use

the height of the plot

save_plot

whether to save the plot

output_dir

the path to the directory to where the plot will be outputted. This defaults to the directory containing CELESTA_functions.R. Note that the directory must exist.

Value

generates a plot of the expression probabilities for a specified marker


plevritis-lab/CELESTA documentation built on Jan. 30, 2023, 3:32 p.m.