plotStsHeatmap | R Documentation |
Displays variable-expression values along a trajectory direction with a smoothed heatmap (from left to right).
plotStsHeatmap(
object,
variables,
id = idST(object),
width = getTrajectoryLength(object, id),
arrange_rows = "none",
unit = getDefaultUnit(object),
smooth_span = 0.3,
multiplier = 10,
clrsp = NULL,
.f = NULL,
.cols = dplyr::everything(),
verbose = NULL,
...
)
object |
An object of class |
variables |
Character vector. The names of the data variables of interest. |
arrange_rows |
Alter the way the rows of the heatmap
are displayed in order to highlight patterns. Currently either 'maxima',
'minima' or 'input'. If 'input', variables are displayed
in the same order as they are provided in the argument |
unit |
Character value. Specifies the desired unit in
which distance measures
or area measures are provided.
Run |
smooth_span |
Numeric value. Controls the degree of smoothing.
Given to argument |
multiplier |
Numeric value. For better visualization the transient pattern
is smoothed with a loess fit. The total number of predicted values (via |
clrsp |
Character value. Specifies the color spectrum to be used to represent
continuous values of numeric variables. Run |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
A ggplot.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
object <- normalizeCounts(object, activate = TRUE)
genes <- c("EGFR", "MBP", "MAG", "SNAP25")
plotStsHeatmap(object, id = "horizontal_mid", variables = genes)
plotStsLineplot(object, id = "horizontal_mid", variables = genes)
plotStsRidgeplot(object, id = "horizontal_mid", variables = genes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.