year_chart | R Documentation |
This function plots values corresponding to each month on a rose plot.
year_chart(mvalue, lgnm = "Value", width = 0.9, high = "yellow", low = "green")
mvalue |
A numeric vector of length 12, with values for each month (Jan–Dec).
If you have it in a data frame, extract it (e.g. |
lgnm |
Title of the legend (default |
width |
Width of bars. |
high |
Color name for high values (default |
low |
Color name for low values (default |
A ggplot
object, which can be further modified with ggplot2
functions.
day_chart()
for plotting values on a day by hours
week_chart()
for plotting values in a week by days
cyclic_chart()
for plotting values by arbitrary period
syltmp <- c(18.4, 20.8, 24.3, 26.0, 26.8, 27.6, 28.0,
28.2, 27.9, 26.7, 23.3, 19.7)
year_chart(mvalue = syltmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.