plotImageMask.Rd
Visualizes the results of identifyPixelContent()
.
plotImageMask()
: Distinguishes pixel in back- and foreground. Foreground being the tissue.
plotPixelContent():
Visualizes the classification of each pixel in detail.
plotImageMask(object, ...)
# S4 method for class 'SPATA2'
plotImageMask(
object,
img_name = activeImage(object),
clr_fg = "black",
clr_bg = "white"
)
# S4 method for class 'SpatialData'
plotImageMask(
object,
img_name = activeImage(object),
clr_fg = "black",
clr_bg = "white"
)
# S4 method for class 'HistoImage'
plotImageMask(object, clr_fg = "black", clr_bg = "white")
plotPixelContent(object, ...)
# S4 method for class 'SPATA2'
plotPixelContent(
object,
img_name = activeImage(object),
clrp = "sifre",
clr_bg = "white",
clr_fragments = "red",
clr_tissue = "forestgreen",
clr_artefact = "blue",
type = FALSE,
clrp_adjust = NULL
)
# S4 method for class 'SpatialData'
plotPixelContent(
object,
img_name = activeImage(object),
clrp = "sifre",
clr_bg = "white",
clr_fragments = "red",
clr_tissue = "forestgreen",
clr_artefact = "blue",
type = TRUE,
clrp_adjust = NULL
)
# S4 method for class 'HistoImage'
plotPixelContent(
object,
clrp = "sifre",
clr_bg = "white",
clr_fragments = "red",
clr_tissue = "forestgreen",
clr_artefact = "blue",
type = TRUE,
clrp_adjust = NULL
)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Used to absorb deprecated arguments or functions.
Character value. The name of the image of interest.
If NULL
, the active image is chosen by default. Either way, must
be one of getImageNames()
.
Character values. Color with which to display foreground and background of the mask.
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run validColorPalettes()
to obtain valid
input options.
Character values. Colors
with which to display the content type if type = FALSE
.
Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group.
A ggplot.
Always plots the original justification of the image without transformations.