activateImage | R Documentation |
Sets and extracts the active (default) image name.
activateImage(object, ...)
## S4 method for signature 'SPATA2'
activateImage(
object,
img_name,
load = TRUE,
unload = TRUE,
verbose = TRUE,
...
)
## S4 method for signature 'SpatialData'
activateImage(
object,
img_name,
load = TRUE,
unload = TRUE,
verbose = TRUE,
...
)
activateImageInt(object, ...)
## S4 method for signature 'SPATA2'
activateImageInt(object, img_name, load = FALSE)
## S4 method for signature 'SpatialData'
activateImageInt(object, img_name, load = FALSE)
activeImage(object, ...)
## S4 method for signature 'SPATA2'
activeImage(object)
## S4 method for signature 'SpatialData'
activeImage(object)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
img_name |
Character value. The name of the image to activate as the default image. |
verbose |
Logical. If (Warning messages will always be printed.) |
activateImage(): Updated SPATA2
object.
activeImage(): Character value. Name of the currently active image. Empty string if no images exist.
getImage()
, getHistoImage()
, getImageNames()
library(SPATA2)
data("example_data")
object <- example_data$object_UKF275T_diet
getImageNames(object)
activeImage(object)
plotImage(object)
getCoordsDf(object) # with image1
object <- activateImage(object, img_name = "very_low_res")
activeImage(object)
plotImage(object)
# note how x_orig, y_orig remain the same, but x and y differ
getCoordsDf(object) # with very_low_res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.