Description Usage Arguments Details Note Examples
Given a collection of dates and values for each date, this will generate a calendar for each month in the range of dates. This will generate complete calendar months, so there is no need to fill in any missing dates or anything.
1 | ggcal(dates, fills)
|
dates |
vector of |
fills |
vector of values to map onto the fill aesthetic |
Note that the ggplot2 object returned will not have any scale defined for the fill, so that can be added to the returned ggplot2 object.
If the dates span multiple years, the year will be appended to the month name automatically, otherwise, it will not appear.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.