Description Usage Arguments Value Examples
View source: R/plotting_functions.R
Function to plot the posterior of the model parameters obtained by graper from the variational inference framework.
1 2 |
fit |
fit as produced by |
param2plot |
which parameter of the graper model to plot (gamma, beta, tau or s) |
beta0 |
true beta (if known) |
gamma0 |
true gamma (if known) |
tau0 |
true tau (if known) |
pi0 |
true pi (if known) |
s0 |
true s (if known) |
jmax |
maximal number of components per group to plot (for beta and s) |
range |
plotting range (x-axis) |
a ggplot object
1 2 3 4 5 6 | # create data
dat <- makeExampleData()
# fit the graper model
fit <- graper(dat$X, dat$y, dat$annot)
# plot posterior distribution of the gamma parameter
plotPosterior(fit, param2plot="gamma")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.