day_chart | R Documentation |
This function plots values corresponding to each hour on a rose plot.
day_chart(hvalue, high = "blue", low = "yellow", width = 0.8)
hvalue |
A numeric vector having values at each of 24 hours (starts from 6 am) |
high |
The color name for the high values. The default is |
low |
The color name for the low values. The default is |
width |
Width of bars |
The color names can be vice versa or other colors, depending on the context.
A ggplot
object, which can be further modified
with ggplot2
functions and themes.
week_chart()
for plotting values in a week by days
year_chart()
for plotting values on in a year by months
cyclic_chart()
for plotting values by arbitrary period
value <- sample(15:30, 24, replace = TRUE)
day_chart(hvalue = value, high = "blue", low = "yellow", width = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.