plot.area.bf | R Documentation |
Plot an area graph
## 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 = "")
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) |
ggplot2 object with all the right formatting
plot.area.bf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.