Learn R Programming

demcon (version 0.4.0)

plot.cshp_mult: Plot A cshapes Multiple

Description

Plot A cshapes Multiple

Usage

# S3 method for cshp_mult
plot(x, y, ...)

Value

A single ggplot2::ggplot() device.

Arguments

x

A list of class chsp_mult with multiple cshapes ggplot2::ggplot() devices produced by cshp_mult().

y

ignored.

...

Additional arguments to be passed to the plotting device.

Examples

Run this code
# \donttest{
if(requireNamespace("cshapes")){
dates = c(
as.Date("1989-1-1"),
as.Date("1992-5-1"),
as.Date("1993-5-1"),
as.Date("2006-7-1"),
as.Date("2008-3-1"))

cow_codes = list(345,
                 c(344, 346, 349),
                 343,
                 341,
                 347)

bb<-c(xmin=13,ymin=40,xmax=24,ymax=47)

balkans<-cshp_mult(dates = dates, cowcodes = cow_codes,
                   bb = bb,jitter_labs = FALSE)

plot(balkans)
}# }

Run the code above in your browser using DataLab