Skip to contents

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 having values in each month of the year (starts from January, obviously). If you have it in a data frame, you need to extract it (one way is this: data$mvalue)

lgnm

Title of legend. The legend position can also be changed by adding legend.position = "top", where the accepted positions are top, bottom, left, and right.

width

Width of bars

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.

Value

A circular chart showing values in each month of the year.

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)