All functions

all_geoms

A vector of geoms

chart_types_ext

Grattan chart types

check_chart_aspect_ratio()

Check that your chart looks alright in the different chart formats

colour_text()

Create the css needed to colour text using ggtext

create_fullslide()

Assemble a chart featuring the Grattan logo and orange line

.prep_aes()

Prepare `ggplot2` geom_ defaults

.set_geom_aesthetics()

Set default geom aesthetics

.set_grattan_aesthetics()

Set the default ggplot2 aesthetics to grattan branding

export_latex_code()

Export the figure environment LaTeX code for a ggplot2 graph object.

extract_labs()

Take a ggplot2 object and return a list containing its title, subtitle, and caption. Recognises Patchwork plots.

grattan_arrow()

Create arrows in the Grattan style

grattan_y_continuous() scale_y_continuous_grattan() grattan_x_continuous() scale_x_continuous_grattan()

Ensure your y- and x-axis are Grattan style guide-consistent and doesn't hang off the edge of the chart.

grattan_black

'

grattan_blue

'

grattan_blue1

'

grattan_blue2

'

grattan_blue3

'

grattan_blue4

'

grattan_blue5

'

grattan_blue6

'

grattan_blue7

'

grattan_blue8

'

grattan_box

'

grattan_darkblue

'

grattan_darkblue1

'

grattan_darkblue2

'

grattan_darkblue3

'

grattan_darkblue4

'

grattan_darkblue5

'

grattan_darkblue6

'

grattan_darkblue7

'

grattan_darkblue8

'

grattan_darkgrey

'

grattan_darkgrey1

'

grattan_darkgrey2

'

grattan_darkgrey3

'

grattan_darkgrey4

'

grattan_darkgrey5

'

grattan_darkgrey6

'

grattan_darkgrey7

'

grattan_darkgrey8

'

grattan_darkorange

'

grattan_darkorange1

'

grattan_darkorange2

'

grattan_darkorange3

'

grattan_darkorange4

'

grattan_darkorange5

'

grattan_darkorange6

'

grattan_darkorange7

'

grattan_darkorange8

'

grattan_darkred

'

grattan_darkred1

'

grattan_darkred2

'

grattan_darkred3

'

grattan_darkred4

'

grattan_darkred5

'

grattan_darkred6

'

grattan_darkred7

'

grattan_darkred8

'

grattan_darkyellow

'

grattan_darkyellow1

'

grattan_darkyellow2

'

grattan_darkyellow3

'

grattan_darkyellow4

'

grattan_darkyellow5

'

grattan_darkyellow6

'

grattan_darkyellow7

'

grattan_darkyellow8

'

grattan_grey1

'

grattan_grey2

'

grattan_grey3

'

grattan_grey4

'

grattan_grey5

'

grattan_grey_alpha

'

grattan_grey_title

grattan_grey_title

grattan_gridlinegrey

grattan_gridlinegrey

grattan_label() grattan_label_repel()

Create labels in the Grattan style - no border, minimal padding

grattan_lightblue

'

grattan_lightblue1

'

grattan_lightblue2

'

grattan_lightblue3

'

grattan_lightblue4

'

grattan_lightblue5

'

grattan_lightblue6

'

grattan_lightblue7

'

grattan_lightblue8

'

grattan_lightgrey

'

grattan_lightgrey1

'

grattan_lightgrey2

'

grattan_lightgrey3

'

grattan_lightgrey4

'

grattan_lightgrey5

'

grattan_lightgrey6

'

grattan_lightgrey7

'

grattan_lightgrey8

'

grattan_lightorange

'

grattan_lightorange1

'

grattan_lightorange2

'

grattan_lightorange3

'

grattan_lightorange4

'

grattan_lightorange5

'

grattan_lightorange6

'

grattan_lightorange7

'

grattan_lightorange8

'

grattan_lightred

'

grattan_lightred1

'

grattan_lightred2

'

grattan_lightred3

'

grattan_lightred4

'

grattan_lightred5

'

grattan_lightred6

'

grattan_lightred7

'

grattan_lightred8

'

grattan_lightyellow

grattan_lightyellow

grattan_lightyellow1

grattan_lightyellow1

grattan_lightyellow2

grattan_lightyellow2

grattan_lightyellow3

grattan_lightyellow3

grattan_lightyellow4

grattan_lightyellow4

grattan_lightyellow5

grattan_lightyellow5

grattan_lightyellow6

grattan_lightyellow6

grattan_lightyellow7

grattan_lightyellow7

grattan_lightyellow8

grattan_lightyellow8

grattan_orange

'

grattan_orange1

'

grattan_orange2

'

grattan_orange3

'

grattan_orange4

'

grattan_orange5

'

grattan_orange6

'

grattan_orange7

'

grattan_orange8

'

grattan_orange_alpha

'

grattan_pal()

Create a Grattan-appropriate palette for your chart.

grattan_palette_set

A list of Grattan colour sets

grattan_palettes

Predefined grattan colours combined into palettes

grattan_point_filled()

Convenience function to create large points with white centres

grattan_red

'

grattan_red1

'

grattan_red2

'

grattan_red3

'

grattan_red4

'

grattan_red5

'

grattan_red6

'

grattan_red7

'

grattan_red8

'

grattan_save() grattan_save_all()

Save plots in Grattan-approved sizes and shapes

grattan_save_pptx()

Save a ggplot2 chart, or list of charts, as a Powerpoint presentation

grattan_colour_manual() grattan_fill_manual()

Convenient functions to set Grattan-appropriate palettes

grattan_yellow

'

grattan_yellow1

'

grattan_yellow2

'

grattan_yellow3

'

grattan_yellow4

'

grattan_yellow5

'

grattan_yellow6

'

grattan_yellow7

'

grattan_yellow8

'

make_grattan_pal()

Interpolate a grattan colour palette

make_grattan_pal_discrete()

Create a grattan colour palette

palette_order

Set the palette order as needed in the

paulify_classifications()

Make the ANZSIC and ANZSCO classifications Paul-compliant

plot_opts_grattan

A list of plot options reflecting the Grattan brand

plot_opts_vanilla

The vanilla plotting options

register_palette()

Register the option for which palette to use.

replace_labs()

Replace a ggplot2's labels (title, subtitle, and/or caption) with a given string. Works for regular ggplot2 plots and patchwork plots.

return_script_and_chart_location()

Return a charter vector of the filepath of the script and powerpoint location

save_chartdata()

Save a ggplot2 chart as a properly-formatted "chart data" Excel spreadsheet

scale_colour_grattan() scale_fill_grattan()

Scale constructor for grattan colours

set_aesthetics()

Set ggplot2 default aesthetics

stitch_pdfs()

Combine multiple PDFs into a single PDF

theme_grattan()

Create a ggplot2 theme consistent with the Grattan style guide.

watermark()

Add a watermark annotation layer for a ggplot2 object

wrap_labs()

Format title, subtitle, and caption of a ggplot2 chart in the Grattan style.