plot.scatter.bf: Create a scatter plot with Brookfield formatting. Uses Rooney...

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

plot.scatter.bfR Documentation

Create a scatter plot with Brookfield formatting. Uses Rooney font family - make sure you install that with extrafonts before using this.

Description

Create a scatter plot with Brookfield formatting. Uses Rooney font family - make sure you install that with extrafonts before using this.

Usage

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 = "")

Arguments

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

Value

Scatter plot that conforms to Brookfield style

Examples

plot.scatter.bf(data,"income","automation.risk")

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