This is the generic plot function for `em` project. One can produce three types of graphs using this function 1. A graph of the predicted value distribution for each component. 2. A histogram of posterior probability distributions
# S3 method for em
plot(
x,
by = c("component", "prob"),
prior = FALSE,
cols = rep(1, length(x$models)),
lwds = rep(3, length(x$models)),
ltys = c(seq_len(length(x$models))),
ranges = NULL,
main = NULL,
lgd = list(),
lgd.loc = "topleft",
hist.args = list(main = "Histograms of posterior probabilities", xlab =
"Posterior Probabilities"),
...
)`NULL`
the `em` model to plot
the type of the graph to produce. The default is `component`.
whether fit the model using prior probabilities.
lines' colors.
Lines' widths.
lines' types.
the ranges of the x-axis and the y-axis limits of plots. It should be a vector of four numeric values. The first two represent the x-axis limits. The last two represent the y-axis limits
the main title.
a list for legend related arguments.
the location of the legend. The default is "topleft".
The list of arguments for the histogram.
other arguments.