week_chart | R Documentation |
This function plots values corresponding to each day on a rose plot.
week_chart(wvalue, lgnm = "Value", high = "yellow", low = "green", width = 0.9)
wvalue |
A numeric vector having values on each day, starting from Saturday |
lgnm |
Title of legend |
high |
The color name for the high values. The default is |
low |
The color name for the low values. The default is |
width |
The width of bars. |
A ggplot
object, which can be further modified
with ggplot2
functions and themes.
day_chart()
for plotting values in on a day hours
year_chart()
for plotting values on in a year by months
cyclic_chart()
for plotting values by arbitrary period
set.seed(10)
wtemp <- sample(10:40, 7)
week_chart(wtemp, high = "yellow") + ggplot2::labs(title = "Random Values by Day")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.