View source: R/compare_SThet.R
compare_SThet | R Documentation |
Plots the spatial autocorrelation statistics of genes across samples and colors samples acording to sample metadata.
compare_SThet(
x = NULL,
samplemeta = NULL,
genes = NULL,
color_by = NULL,
categorical = T,
color_pal = "muted",
ptsize = 1
)
x |
an STlist. |
samplemeta |
a string indicating the name of the variable in the clinical data frame. If NULL, uses sample names |
genes |
the name(s) of the gene(s) to plot. |
color_by |
the variable in |
categorical |
logical indicating whether or not to treat |
color_pal |
a string of a color palette from khroma or RColorBrewer, or a vector with colors with enough elements to plot categories. |
ptsize |
a number specifying the size of the points. Passed to the |
This function takes the names of genes and their Moran's I or Geary's C computed for multiple samples and to provide a muti-sample comparison. Samples in the plot can be colored according to sample metadata to explore potential associations between spatial distribution of gene expression and sample-level data.
a list of plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.