plot.area.bf: Plot an area graph

View source: R/plot.area.bf.R

plot.area.bfR Documentation

Plot an area graph

Description

Plot an area graph

Usage

## S3 method for class 'area.bf'
plot(data, x, y, group.by, colours = NULL, stacked = TRUE,
  order.area = NULL, order.y = NULL, unit.x = "", unit.y = "",
  x.axis = "", y.axis = "", legend.title = "", plot.title = "",
  plot.fig.num = "", caption = "")

Arguments

data

Data to use

x

String. Column name for the X axis

y

String. Column name for the Y axis - main value that is changing

group.by

String. Group the area being plotted by this column

colours

Vector. NULL or Specify colours you want the areas to be filled by

order.area

Vector of String - giving the order you want the areas to be plotted, from bottom to top and from backgroudn to foreground

order.y

Vector of String - giving the order you want the x axis to be plotted - only works if y is non numerical

unit.x

String. Unit for the x axis. Special formatting for % and $

unit.y

String. Unit for the y axis. Special formatting for % and $

x.axis

Character denoting the x axis title

y.axis

Character denoting the y axis title

plot.title

Character denoting title of the plot

plot.fig.num

Character denoting plot number (or another plot annotations)

caption

Character that denotes caption (Sources)

Value

ggplot2 object with all the right formatting

Examples

plot.area.bf()

BrookfieldIIE/BFTheme documentation built on March 24, 2023, 12:42 p.m.