Description Usage Arguments Value
create 2d spatial plots of ST data with optional image data
1 2 3 4 5 6 7 8 9 10 11 12 |
barcodes |
character vector, barcodes / names of the spots to be plotted |
ids |
data frame with rownames corresponding to barcodes / spot names, assigning spatial coordinates to each spot; coordinates are contained in columns X and Y and conform to the same standards as the output of process_input() |
cluster |
numeric vector or factor containing information to be plotted in the same order as barcodes; usually colour (e.g. for clustering) or size (e.g. total RNA per spot); how this information is used is determined by the parameter mode |
img |
EBImage image object the information will be plotted on; default NULL |
mode |
character specifying how the information in 'cluster' should be visualized. Must be one of 'discrete' or 'continuous'. "discrete" will be encoded in colors (e.g. clustering information), 'continuous' will be displayed by size (e.g. amount of RNA) |
plot.params |
list of parameters needed for good spatial visualization as returned by plot_adjustment |
spot.col |
character specifying the color of the spots if mode is "continuous" |
title |
character, title of the plot" |
indicator |
string, either "col" or "size", depending on wether information should be conveyed by spot size or colour. If not specified the default for mode "discrete" will be "col" and the default for mode "continuous" will be "size". |
ggplot2 object (plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.