PlotStates: Function to plot the hidden states

Description Usage Arguments Value Examples

View source: R/PlotStates.R

Description

This function plots on a tree the state of each latent variables.

Usage

1
2
PlotStates(grove.obj, block = "Intercept", legend = FALSE, main = NULL,
  prior = FALSE)

Arguments

grove.obj

Output from function FAnova.

block

Which block to plot.

legend

If TRUE, show legend.

main

Main title.

prior

If TRUE, plot prior state probabilities. If FALE, plot posterior state probabilities.

Value

A plot.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data <- GenerateSyntheticAnova(st.dev = 5, n.replicates = 5)
W <- DWT(data$noisy.Y)
X <- data$X
ans <- FAnova(W, X, ~ 1 + factorA + factorB)
PlotStates(ans)
PlotStates(ans, block = "factorA")
PlotStates(ans, block = "factorB")
## End(Not run)

grove documentation built on May 2, 2019, 5:55 a.m.

Related to PlotStates in grove...