plot.p3state | R Documentation |
Produces various plots related to the p3state
model, including transition probabilities,
marginal distributions, and bivariate distribution functions.
## S3 method for class 'p3state'
plot(
x,
plot.trans = NULL,
plot.marginal = NULL,
plot.bivariate = NULL,
time1,
time2,
xlab,
ylab,
zlab,
col,
col.biv = NULL,
...
)
x |
An object of class |
plot.trans |
Character or logical; specifies which transition probabilities to plot.
Options include |
plot.marginal |
Logical; whether to plot marginal distributions. Defaults to |
plot.bivariate |
Logical; whether to plot the bivariate distribution function. Defaults to |
time1 |
Numeric; start time for the plot. Defaults to 0 if missing. |
time2 |
Numeric; end time for the plot. Defaults to the maximum observed time. |
xlab |
Character; label for the x-axis. Defaults to "Time" if missing. |
ylab |
Character; label for the y-axis. Optional. |
zlab |
Character; label for the z-axis in 3D plots. Optional. |
col |
Color(s) used for plots. Optional. |
col.biv |
Color specification for bivariate contour plots. Optional. |
... |
Additional graphical parameters passed to plotting functions. |
Invisibly returns NULL
. Plots are drawn as side effects.
## Not run:
# Suponha que 'fit' é um objeto p3state ajustado
plot(fit, plot.trans = "P11")
plot(fit, plot.marginal = TRUE)
plot(fit, plot.bivariate = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.