Learn R Programming

exuber (version 0.2.1)

autoplot.datestamp: Plotting with ggplot2 and tidying with tibble datestamp objects

Description

Plotting datestamp with geom_segment()

Usage

# S3 method for datestamp
autoplot(object, ...)

# S3 method for datestamp fortify(model, data, ...)

Arguments

object

An object of class datestamp()

...

further arguments passed to method, ignored.

model

datestamp object

data

original dataset, not used (required by generic fortify() method).

Examples

Run this code
# NOT RUN {
dta <- cbind(sim_dgp1(n = 100), sim_dgp2(n = 100))

dta %>%
  radf() %>%
  datestamp() %>%
  autoplot()

# Change the colour manually
dta %>%
  radf() %>%
  datestamp() %>%
  autoplot() +
  ggplot2::scale_colour_manual(values=rep("black", 4 ))


# }

Run the code above in your browser using DataLab