renameMetaFeatures | R Documentation |
Allows to rename features stored inside the @fdata slot.
renameMetaFeatures(object, ...)
object |
A valid spata-object. |
... |
The features to be renamed specified according to the following
syntax: 'new_feature_name' |
An upated spata-object.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
getFeatureNames(object)
object <- renameMetaFeatures(object, "histology_new" = "histology")
getFeatureNames(object)
plotSurface(object, color_by = "histology") # fails
potSurface(object, color_by = "histology_new")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.