day_chart: Plot Values on a 24-Hour Day, on Specific Hours

View source: R/day_chart.R

day_chartR Documentation

Plot Values on a 24-Hour Day, on Specific Hours

Description

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

Usage

day_chart(hvalue, high = "blue", low = "yellow", width = 0.8)

Arguments

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 red

low

The color name for the low values. The default is green.

width

Width of bars

Details

The color names can be vice versa or other colors, depending on the context.

Value

A ggplot object, which can be further modified with ggplot2 functions and themes.

See Also

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

Examples

value <- sample(15:30, 24, replace = TRUE)
day_chart(hvalue = value, high = "blue", low = "yellow", width = 0.8)

clockplot documentation built on Sept. 14, 2025, 1:07 a.m.