renameImage | R Documentation |
Renames an image.
renameImage(object, ...)
## S4 method for signature 'SPATA2'
renameImage(object, img_name, new_img_name, ...)
## S4 method for signature 'SpatialData'
renameImage(object, img_name, new_img_name, verbose = TRUE, ...)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
img_name |
Character value. The name of the image to be renamed. |
new_img_name |
Character value. The new name of the image. |
verbose |
Logical. If (Warning messages will always be printed.) |
The updated input object, containing the added, removed or computed results.
library(SPATA2)
object <- example_data$object_UKF275T_diet
getImageNames(object)
plotImage(object, img_name = "normres") # fails, does not exist
object <- renameImage(object, img_name = "image1", new_img_name = "normres")
plotImage(object, img_name = "normres")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.