Description Usage Arguments Value
View source: R/spatial_gene_plots.R
create spatial plots for the top n.genes genes in a given table and store them as pdf
1 2 3 4 5 6 7 8 9 10 11 | spatial_gene_plots(
gene.table,
counts,
ids,
img = NULL,
plot.params = NULL,
n.genes = NULL,
filepath = NULL,
filename = "spatial_genes.pdf",
colour = "black"
)
|
gene.table |
data frame containing interesting genes, as returned by filter_genes (or entry differential.genes of analyze_clustering output) |
counts |
non-negative numeric matrix containing gene expression for all spots (spots x genes) |
ids |
barcode data frame assigning spatial coordinates to all spots; column names 'X' and 'Y' |
img |
ST image (EBImage object) if available. Will be used as plotting background if plot.params is provided. If not available, leave default NULL. |
plot.params |
list created by plot_adjustment; only needed if img is provided |
n.genes |
integer, number of genes to be plotted (starting from the top of gene.table); optional |
filepath |
character specifying the directory in which the output file ('spatial_genes.pdf') should be stored |
filename |
character specifying the name of the pdf file; default "spatial_genes.pdf" |
colour |
character specifying the colour of the spots in the gene expression plots; default "black" |
NULL, plots to file 'filepath'/spatial_genes.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.