View source: R/plot.scatter.bf.R
plot.scatter.bf | R Documentation |
Create a scatter plot with Brookfield formatting. Uses Rooney font family - make sure you install that with extrafonts before using this.
plot.scatter.bf(data,x,y,group.by=NULL,p.size=NULL,unit.x="",
unit.y="",plot.title="",plot.fig.num="",title.x.axis="",
title.y.axis="",legend.title = "",deg.45 = FALSE,
export = FALSE,export.name = "")
data |
Main data table to plot A |
x |
Character corresponding the column name for x-axis |
y |
Character corresponding to the column name for y-axis |
group.by |
Character corresponding to the column name that points are grouped by (colour) |
colours |
Vector (or set.colour function) of colours to use. If not, default palette is generated. |
p.size |
Character corresponding to the column name that sets the size for points |
deg.45 |
TRUE/FALSE denoting whether to add 45 degree line or not |
trend.line |
TRUE/FALSE add a trend line using OLS |
plot.limit |
Vector of form c(min.x,max.x,min.y,max.y) that sets out plot limits |
unit.x |
Character denoting the unit for x-axis. Special formatting for % and $ |
unit.y |
Character denoting the unit for y-axis. Special formatting for % and $ |
x.axis |
Character denoting title for the x axis |
y.axis |
Character denoting title for the y axis |
plot.title |
Character denoting title of the plot |
plot.fig.num |
Character denoting plot number (or another plot annotations) |
caption |
character for caption (sources etc) |
legend.title |
Character denoting legend titles |
export |
TRUE/FALSE whether to export file as EPS under default options (height=6 inches, width=9 inches) |
export.name |
Name of the exported EPS file |
Scatter plot that conforms to Brookfield style
plot.scatter.bf(data,"income","automation.risk")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.