Skip to contents

This function plots values corresponding to each day on a rose plot.

Usage

week_chart(wvalue, lgnm = "Value", high = "yellow", low = "green", width = 0.9)

Arguments

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 red

low

The color name for the high values. The default is green. The color names can be vice versa or other colors, depending on the context.

width

The width of bars.

Value

A circular chart showing values at each hour on a 24-hour clock

See also

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

Examples

set.seed(10)
wtemp <- sample(10:40,7)
week_chart(wtemp, high = "yellow")+ggplot2::labs(title = "Random Values by Day")
#> Error in week_chart(wtemp, high = "yellow"): object 'x' not found