Learn R Programming

CoSMoS (version 2.2.0)

plot.checkTS: Plot method for checkTS objects

Description

Displays boxplots of simulated statistics against theoretical expected values for each statistic tracked by checkTS.

Usage

# S3 method for checkTS
plot(x, ...)

Value

a ggplot object (invisibly returned; also printed)

Arguments

x

a checkTS object returned by checkTS

...

currently unused

See Also

checkTS

Examples

Run this code

library(CoSMoS)

x <- generateTS(margdist = "burrXII",
                margarg = list(scale = 1,
                               shape1 = .75,
                               shape2 = .15),
                acsvalue = acs(id = "weibull",
                               t = 0:30,
                               scale = 10,
                               shape = .75),
                n = 1000, p = 30, p0 = .25, TSn = 100)

chck <- checkTS(x)
plot(chck)

Run the code above in your browser using DataLab