sgplot

An R package for accessible data visualisations
in the Scottish Government

Alice Hannah

A multiple line chart showing life expectancy over time in China and the United Kingdom. The background is grey, with many white grid lines. Labels have a small font size and the y-axis label is angled. The two data lines are coloured in light blue and pink-orange.

sgplot::use_sgplot()

A multiple line chart showing life expectancy over time in China and the United Kingdom. The background is white, with minimal horizontal grid lines in a light grey colour. All text is horizontal and has a large font size. The two data lines are coloured in turquoise and navy blue.

A screenshot of the sgplot website homepage: https://scotgovanalysis.github.io/sqplot. Content includes instructions to install the sgplot package, and links to a function reference page, and articles.

A screenshot of the sgplot website cookbook: https://scotgovanalysis.github.io/sqplot/articles/cookbook. The table of contents lists the chart types included in the cookbook: line charts, bar charts, histograms, scatterplots, and more.