Learn R Programming

GUIgems (version 0.1)

plot,PosteriorProbabilities-method: plot

Description

Plots S4 objects

Usage

# S4 method for PosteriorProbabilities
plot(x, ci = FALSE, main = paste(x@type,
  "after starting in State", x@states[1], "at time 0"),
  states = 1:dim(x@probabilities)[2], lwd = c(2, 2), col = c("blue",
  "green3"), lty = c(1, 2), xlab = "Time", ylab = "Probability", ...)

Arguments

x
a cohort simulated by simulateCohort.
ci
a binary variable, cumulative incidence
main
same as in any plot
states
names of states in the plot
lwd
vector of lentht 2, with first component for the point estimate and second component for the confidence interval
col
vector of lentht 2, with first component for the point estimate and second component for the confidence interval
lty
vector of lentht 2, with first component for the point estimate and second component for the confidence interval
xlab
same as in any plot
ylab
same as in any plot
...
arguments passed on to main method