Description Usage Arguments Value
This function can be used to plot expression of one or more genes in spatial locations. This function can be used to visualize predictions from this package, and gene expression in general as well if locations are known. Plotly-based interactive graphics can be generated, but by default, ggplot2 will be used.
1 2 3 | plot_spatial_expression(gene_expressions, locations, symmetry,
transposed = FALSE, interactive = FALSE, n_col = 2, pt_size = 1,
alpha = 1)
|
gene_expressions |
Numeric vector or matrix with genes in rows and
locations in columns. Matrices with genes in columns instead are also permitted,
with |
locations |
Data frame or numeric matrix with 1 to 3 columns specifying locations, assumed to have x in the first column, y in the second, and z in the 3rd. |
symmetry |
A string for the column name in |
transposed |
Logical, whether the matrix in |
interactive |
Logical, whether the plot returned should be interactive.
If |
n_col |
Number of columns in multi-faceted plot when multiple genes are plotted at once. |
pt_size |
Numeric, point size. |
alpha |
Numeric, transparency of points. |
If interactive = FALSE
and the plot is less than 3D, a ggplot2
object. Otherwise a Plotly object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.