Network organisation for the features of a
SummarizedExperiment
object. The igraph should be stored in the metadata
slot by a name
containing "graph"
. This panel uses
plotRowGraph
to generate the plot.
The RowGraphPlot(...)
constructor creates an instance of a
RowGraphPlot class, where any slot and its value can be passed to ...
as a named argument.
This class inherits all slots from its parent class GraphPlot.
library(mia)
library(miaViz)
data("GlobalPatterns", library = "mia")
#> Warning: data set ‘mia’ not found
data("row_graph", library = "miaViz")
#> Warning: data set ‘miaViz’ not found
tse <- GlobalPatterns
tse <- agglomerateByRank(tse,
rank = "Genus",
na.rm = TRUE)
metadata(tse)$graph <- row_graph
# Store panel into object
panel <- RowGraphPlot()
# View some adjustable parameters
head(slotNames(panel))
#> [1] "name" "assay.type" "layout" "edge.type" "show.label"
#> [6] "add.legend"
# Launch iSEE with custom initial panel
if (interactive()) {
iSEE(tse, initial = c(panel))
}