Description Usage Arguments Examples
Weekend- and holiday-ignoring position scale for a ggplot.
1 2 3 | scale_x_bd(..., business.dates, max.major.breaks = 5,
max.minor.breaks = max.major.breaks * 5,
breaks = bd_breaks(business.dates))
|
... |
other arguments passed to |
business.dates |
a vector of |
max.major.breaks |
maximum major breaks |
max.minor.breaks |
maximum minor breaks |
breaks |
a function |
1 2 3 4 5 | ## Not run:
ggplot(ts, aes(x=date, y=price)) +
scale_x_bd(business.dates=yahoo('SPY'), max.major.breaks=10, labels=date_format("%b '%y"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.