View source: R/plot_calendar.R
plot_calendar | R Documentation |
A ggplot2 equivalent of openair::calendarPlot()
plot_calendar(data, fill, wd = NULL, ws = NULL, text = wd, draw.arrow = TRUE)
data |
Data frame containing a |
fill |
The column to fill the calendar plot. This is usually the pollutant concentration. |
wd, ws |
Optional wind speed and wind direction plotted as arrows. |
text |
Optional column to pass to |
draw.arrow |
Should the wind vector arrows be drawn. This is better turned off if the plot is going to be converted to plotly. |
Note that the ggplot2 object returned will not have any scale defined for the fill, so that they can be added easily with an ad-hoc approach.
If the dates span multiple years, the year will be appended to the month name automatically, otherwise, it will not appear.
{ }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.