Learn R Programming

emax.glm (version 0.1.2)

plot.em.glm: Plot fit-parameters and errors

Description

Plot fit-parameters and errors

Usage

# S3 method for em.glm
plot(x, known_params = NULL, plot_type = lines,
  add = FALSE, ...)

Arguments

x

An em.glm fit object.

known_params

Prior estimates of fit parameters for comparison.

plot_type

The plot type to display. Defaults to lines, alternative include points.

add

Boolean flag to decide if the plot should be added to an existing displayed plot object or create a new axes.

...

Arguments to be passed to methods

Examples

Run this code
# NOT RUN {
x <- model.matrix(~ factor(wool) + factor(tension), warpbreaks)
y <- warpbreaks$breaks

m <- em.glm(x = x, y = y, K = 2, b.init = "random")

plot(m)

# }

Run the code above in your browser using DataLab