To plot DMN fits generated with mia
use plotDMNFit
.
plotDMNFit(x, name = "DMN", type = c("laplace", "AIC", "BIC"), ...)
# S4 method for class 'SummarizedExperiment'
plotDMNFit(x, name = "DMN", type = c("laplace", "AIC", "BIC"))
Arguments
- x
a
SummarizedExperiment
object contain the DMN data in metadata
.
- name
Character scalar
. The name to store the result in
metadata
(Default: "DMN"
)
- type
Character scalar
. The type of measure for access the goodness of fit. One of
‘laplace’, ‘AIC’ or ‘BIC’.
- ...
optional arguments not used.
Value
plotDMNFit
returns a ggplot2
plot.
Examples
library(mia)
library(bluster)
# Get dataset
data("peerj13075", package = "mia")
tse <- peerj13075
# Cluster the samples
tse <- addCluster(tse, DmmParam(k = 1:4), name = "DMM", full = TRUE)
# Plot the fit
plotDMNFit(tse, name = "DMM", type = "laplace")