Create a band chart

areaBand(
data,
x,
yLower,
yUpper,
fill = "crimson",
stroke = NULL,
strokeWidth = NULL,
xticks = NULL,
yticks = NULL,
xtitle = NULL,
xtitleFontSize = 16,
ytitle = NULL,
ytitleFontSize = 16,
title = NULL,
titleFontSize = 22,
font = "Verdana, Geneva, Tahoma, sans-serif",
opacity = 1,
axisCol = "black",
width = NULL,
height = NULL
)

## Arguments

data The data frame containing the variables to consider. The x-variable to consider. Must be a date variable in 'yyyy-mm-dd' format. The y-lower band variable to consider. The y-upper band variable to consider. The color of the band. Defaults to 'crimson'. Optional. The color of the stroke of the band. Optional. The width of the band stroke. Optional. the number of x-axis ticks to consider. Optional. The number of y-axis ticks to consider. Optional. The title of the x-axis. The font size of the x-axis title. Defaults to 16. Optional. The title of the y-axis. The font size of the y-axis title. Defaults to 16. Optional. The title of the plot. The font size of the plot title. Defaults to 22. The font family to consider for the titles. Defaults to "Verdana, Geneva, Tahoma, sans-serif". The background color of the SVG. Defaults to "#CAD0D3" HEX color. The color opacity of the area chart (from 0 to 1). Defaults to 1. the color of the x and y axis. It includes the ticks, the labels and titles. Defaults to 'black'. Optional. The width of the SVG output. Optional. The height of the SVG output.

A SVG band chart

## Examples

airpassengers <- data.frame(
passengers_lower = as.matrix(AirPassengers),
passengers_upper = as.matrix(AirPassengers) + 40,
date= zoo::as.Date(time(AirPassengers))
)

areaBand(
data = airpassengers,
x = "date",
yLower = "passengers_lower",
yUpper = "passengers_upper",
fill = "yellow",
stroke = "black"
)