Learn R Programming

CoSMoS (version 2.2.0)

plot.cosmosts: Plot method for cosmosts objects

Description

Visualises time series generated by generateTS as bar charts, one panel per series.

Usage

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

Value

a ggplot object (invisibly returned; also printed)

Arguments

x

a cosmosts object returned by generateTS

...

currently unused

See Also

generateTS, regenerateTS

Examples

Run this code

library(CoSMoS)

ts <- generateTS(margdist = "ggamma",
                 margarg  = list(scale = 1, shape1 = .8, shape2 = .8),
                 acsvalue = acs(id = "paretoII", t = 0:30,
                                scale = 1, shape = .75),
                 n = 1000, p = 30, TSn = 2)
plot(ts)

Run the code above in your browser using DataLab