Scoreplot: Scoreplot

View source: R/Visualize.R

ScoreplotR Documentation

Scoreplot

Description

Visualize the spatial data with a continuous value in each spot, e.g. expression, scHOT score.

Usage

Scoreplot(
  x,
  y,
  outputFolder = NULL,
  title = "Spatplot",
  value,
  legend = "score",
  savePlot = FALSE,
  ...
)

Arguments

x

Numeric, x-coordinate of spatial data.

y

Numeric, y-coordinate of spatial data.

outputFolder

Output folder to save results

title

A character for the title of plot.

value

A vector to assign color for each spot, e.g., cell type annotation, HMRF result, expression of a certain gene.

legend

A character of feature to divide up cell into sub-populations, e.g. "K-means", "HMRF", "cell type".

savePlot

Boolean, whether to save plot.

...

other arguments

Value

ggplot object


YeehanXiao/STREAM documentation built on Aug. 13, 2022, 6:43 p.m.