img_update | R Documentation |
Edit the image with img_edit()
then update the imgData()
.
img_update(
spe,
sampleid,
image_id = "lowres",
new_image_id = paste0("edited_", image_id),
overwrite = FALSE,
...
)
spe |
A
SpatialExperiment-class
object. See |
sampleid |
A |
image_id |
A |
new_image_id |
A |
overwrite |
A |
... |
Parameters passed to |
A
SpatialExperiment-class object
with an updated imgData()
slot.
Other Image editing functions:
img_edit()
,
img_update_all()
if (enough_ram()) {
## Obtain the necessary data
if (!exists("spe")) spe <- fetch_data("spe")
## Reduce brightness to 25% and update the imgData()
imgData(img_update(spe, sampleid = "151507", brightness = 25))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.