View source: R/imageManipulation.R
changeImageColoring | R Documentation |
Update color scheme for changing to RGB image
changeImageColoring(overlay, color, dye)
overlay |
SpatialOverlay object, with 4channel image |
color |
color to change dye to, hex or color name |
dye |
which dye to change color, can be from Dye or DisplayName column from fluor(overlay) |
SpatialOverlay object with updated fluor data
muBrain <- readRDS(unzip(system.file("extdata", "muBrainSubset_SpatialOverlay.zip",
package = "SpatialOmicsOverlay")))
muBrain <- add4ChannelImage(overlay = muBrain,
ometiff = downloadMouseBrainImage(), res = 8)
fluor(muBrain)
muBrain <- changeImageColoring(overlay = muBrain, color = "magenta",
dye = "Cy5")
muBrain <- changeImageColoring(overlay = muBrain, color = "#42f5ef",
dye = "Alexa 488")
fluor(muBrain)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.