View source: R/plot.column.bf.R
plot.column.bf | R Documentation |
Create a simple bar chart with Brookfield theme. Uses Rooney font family - make sure you install that with extrafonts before using this.
plot.column.bf(data,x,cat,plot.title="",plot.fig.num="",
order.bar = FALSE, group.by = "", label = FALSE, export = FALSE,
export.name = "")
data |
Main data table to plot |
x |
Character corresponding the column name for what's being counted in the bar graph |
cat |
Character corresponding to the column name categories of the column |
order.bar |
One of "none", "ascending", or "descending" |
group.by |
Character corresponding to the column name that columns are grouped by (colour) |
colours |
Vector (or set.colour function) of colours to use. If not, default palette is generated. |
stacked |
TRUE/FALSE to stack the columns or not still supported but maybe not in the future |
label |
TRUE/FALSE on whether to label the points or not |
label.unit |
What unit does y axis (and labels if any) will have |
label.adjust |
Factor to adjust the labels by default is 2.5% or 0.025 |
plot.title |
Character denoting title of the plot |
plot.fig.num |
Character denoting plot number (or another plot annotations) |
y.axis |
Character denoting axis title for y (unit) |
legend.title |
Title for the legend if multiple colours are used |
caption |
Character denoting sources and other captions |
export |
TRUE or FALSE whether to export file as EPS under default options (height=6 inches, width=9 inches) |
export.name |
Name of the exported EPS file |
position |
One of "identity", "stacked" or "dodge" |
Single column plot that conforms to Brookfield styling
plot.column.bf(data,"income","automation.risk")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.