setTissueOutline | R Documentation |
Sets tissue outline by calling identifyTissueSections()
and identifyTissueOutline()
.
setTissueOutline(object, verbose = NULL)
object |
An object of class |
verbose |
Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
spata2
object with additional variables in coordinates data.frame.
section : character. The identified tissue section. 0 means probable artefact spot.
outline :logical. TRUE
if identified as a spot that lies on the edge of the tissue.
library(ggplot2)
library(ggExtra)
object <- downloadPubExample("MCI_LMU")
print(getTissueOutlineDf(object))
to_df <- getTissueOutlineDf(object, remove = FALSE)
to_df[["outline"]] <- as.character(to_df[["outline"]])
ggplot(to_df, mapping = aes(x = x, y = y)) +
geom_point_fixed(mapping = aes(color = section, alpha = outline), size = getDefault(object, "pt_size")) +
scale_alpha_manual(values = c("TRUE" = 1, "FALSE" = 0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.