plot.BMRMMsummary: Plot Method for Visualizing BMRMM Summary

View source: R/print_and_plot_results.R

plot.BMRMMsummaryR Documentation

Plot Method for Visualizing BMRMM Summary

Description

Visualization of a specified field of a BMRMMsummary object.

Usage

## S3 method for class 'BMRMMsummary'
plot(x, type, xlab = NULL, ylab = NULL, main = NULL, col = NULL, ...)

Arguments

x

an object of class BMRMMsummary.

type

a string indicating the plot(s) to draw. Must be named after a field of object.

xlab

x-axis label. Default is NULL.

ylab

y-axis label. Default is NULL.

main

main title. Default is NULL.

col

color of the plot. Default is NULL.

...

further arguments for the plot function.

Value

None

See Also

summary.BMRMM()

Examples

results <- BMRMM(foxp2sm, num.cov = 2, simsize = 50, 
                 cov.labels = list(c("F", "W"), c("U", "L", "A")),
                 duration.distr = list('mixgamma',shape=rep(1,3),rate=rep(1,3)))
fit.summary <- summary(results)
plot(fit.summary, 'trans.probs.mean')
plot(fit.summary, 'dur.mix.probs')


BMRMM documentation built on July 9, 2023, 7:37 p.m.