plot.change.arrow.bf: Plot a change graph

View source: R/plot.change.arrow.bf.R

plot.change.arrow.bfR Documentation

Plot a change graph

Description

Plot a change graph

Usage

## S3 method for class 'change.arrow.bf'
plot(data, x, cat, time.var, order.by = "change",
  annotate = FALSE, label = FALSE, nudge.beg = 0.02, nudge.end = 0.015,
  unit.x = "", x.axis = "", y.axis = "", plot.title = "",
  plot.fig.num = "", caption = "")

Arguments

data

Data to use

x

String. Column name for the X axis - the value the categories plotted are changing

cat

String. Column name for the category of things that are changing

time.var

String. Column name of variable that denotes time - time has to be numeric

order.by

String. One of "change" or "value", way to order the categories. Either by the magnitude of change, or the absolute magnitude

unit.x

Character denoting the unit for x-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.change.arrow.bf(change.gdp,"gdp","country","year")

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