plotMonthlyBar: Plot monthly bar plots

plotMonthlyBarR Documentation

Plot monthly bar plots

Description

This plotting method for air temperature data plots bar plots for monthly anomalies and is colour coded based on normalized monthly anomalies

Usage

plotMonthlyBar(
  df,
  ylim,
  years,
  plotYear,
  yearLabel = FALSE,
  yearLabelSide,
  drawPalette = TRUE,
  xaxt = TRUE,
  ylabel = TRUE,
  mar
)

Arguments

df

a data.frame containing at least year, month, anomaly, and normalizedAnomaly.

ylim

a vector of length 2 indicating the range for the y-axis

years

vector of length two indicating the range of years for climatology

plotYear

a vector indicating which years to plot. Can be a vector of length one, indicating to plot only one year, or of length two, indicating a range of years to plot

yearLabel

logical expression indicating whether or not to label the plotYears

yearLabelSide

which side the yearLabel should be placed, (1 = bottom, 3 = top)

drawPalette

logical expression indicating whether or not to draw a palette

xaxt

logical expression indicating whether or not to label x-axis

ylabel

logical exptression indicating whether or not to label y-axis labels

mar

vector of length 4 indicating the margins of the plot

Author(s)

Chantelle Layton


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.