View source: R/NormalBlockBase-S3methods.R
| plot.NormalBlockBase | R Documentation |
Plots the evolution of the objective (log-likelihood or
ELBO) across the (V)EM iterations of the last call to optimize(), see
$plot_loglik().
## S3 method for class 'NormalBlockBase'
plot(x, ...)
x |
An object of class NormalBlockBase. |
... |
not used, only here for S3 compatibility |
Invisibly returns the ggplot2::ggplot object; called for its side effect of plotting.
ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.