year_chart: Plot Values on Each Month of a Year

View source: R/year_chart.R

year_chartR Documentation

Plot Values on Each Month of a Year

Description

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

Usage

year_chart(mvalue, lgnm = "Value", width = 0.9, high = "yellow", low = "green")

Arguments

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. data$mvalue).

lgnm

Title of the legend (default "Value").

width

Width of bars.

high

Color name for high values (default "yellow").

low

Color name for low values (default "green").

Value

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

See Also

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

Examples

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)

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