R Packages

R
Software Development
R packages for data visualisation, data generation, accessing data from APIs, and implementing statistical methodology.

Data visualisation

ggalttext

Hex logo

ggalttext is an R package which generates alt text for plots created in ggplot2.

Documentation: nrennie.rbind.io/ggalttext

Source: github.com/nrennie/ggalttext

ggauto

Hex logo

ggauto is an opinionated ggplot2 extension package to automatically choose the best chart type and styling, based on the types and values in the data. The default styling is chosen to be more accessible and more readable than the default ggplot2 options.

doi: doi.org/10.32614/CRAN.package.ggauto

CRAN: cran.r-project.org/web/packages/ggauto/index.html

Documentation: nrennie.rbind.io/ggauto

Source: github.com/nrennie/ggauto

ggchord2

Hex logo

ggchord2 is a ggplot2 extension that provides functions for drawing chord diagrams for visualising flows between categories. The package extends ggplot2 by adding geoms and stats for drawing chord sectors, arcs, and labels.

doi: doi.org/10.32614/CRAN.package.ggchord2

CRAN: cran.r-project.org/web/packages/ggchord2/index.html

Documentation: nrennie.gitlab.io/ggchord2

Source: gitlab.com/nrennie/ggchord2

ggflowchart

Hex logo

ggflowchart is an R package for creating flowchart diagrams using ggplot2.

doi: doi.org/10.32614/CRAN.package.ggflowchart

CRAN: cran.r-project.org/web/packages/ggflowchart/index.html

Documentation: nrennie.rbind.io/ggflowchart

Source: github.com/nrennie/ggflowchart

ggtextcircle

Hex logo

ggtextcircle is a ggplot2 extension R package which contains geom and stat functions for plotting angled text in a (partial) circle.

Source: github.com/nrennie/ggtextcircle

Colours and themes

PrettyCols

Hex logo

PrettyCols is an R package containing aesthetically pleasing colour palettes. The structure of the package is based on code from the PNWColors, wesanderson, and MetBrewer packages.

doi: doi.org/10.32614/CRAN.package.PrettyCols

CRAN: cran.r-project.org/web/packages/PrettyCols/index.html

Documentation: nrennie.rbind.io/PrettyCols

Source: github.com/nrennie/PrettyCols

RSSthemes

Hex logo

RSSthemes is an R package for styling graphics for RSS publications. This package accompanies the Best Practices for Data Visualisation guidance, published by the Royal Statistical Society, which can be found at rss.org.uk/datavisguide.

doi: doi.org/10.32614/CRAN.package.RSSthemes

CRAN: cran.r-project.org/web/packages/RSSthemes/index.html

Documentation: royal-statistical-society.github.io/datavisguide/docs/tools.html#r

Source: github.com/nrennie/RSSthemes

colorTools

Hex logo

colorTools is an R package containing helper functions for working with colours in R, including contrast checking and colour blending.

Source: gitlab.com/nrennie/colorTools

Data and APIs

LondonMarathon

Hex logo

LondonMarathon is an R package containing two data sets about London Marathon scraped from Wikipedia.

Source: github.com/nrennie/LondonMarathon

national.highways

Hex logo

national.highways is an R package to access the National Highways API from R.

Documentation: nrennie.rbind.io/national-highways

Source: github.com/nrennie/national-highways

Statistical methods

funcnetout

Hex logo

funcnetout is an R package for detecting functional outliers in a network setting, with options for online or offline detection.

Documentation: nrennie.rbind.io/funcnetout

Source: github.com/nrennie/funcnetout

messy

Hex logo

For the purposes of teaching, it is often desirable to show examples of working with messy data and how to clean it. The messy R package creates messy data from clean, tidy data frames so that students have a clean example to work towards.

doi: doi.org/10.32614/CRAN.package.messy

CRAN: cran.r-project.org/web/packages/messy/index.html

Documentation: nrennie.rbind.io/messy

Source: github.com/nrennie/messy

simnetdemand

Hex logo

simnetdemand is an R package used to simulate demand patterns for different types of transport network.

Documentation: nrennie.rbind.io/simnetdemand

Source: github.com/nrennie/simnetdemand

Miscellaneous

WBLifeExpectancy

Hex logo

WBLifeExpectancy is an R package for analysing and visualising World Bank life expectancy data. It was created and used for the analysis in the Significance article We’re not getting any younger! Or should that be “older”?

Documentation: nrennie.rbind.io/WBLifeExpectancy

Source: github.com/nrennie/WBLifeExpectancy

aRt

Hex logo

aRt is an R package to create generative art, using ggplot2 graphics.

Documentation: nrennie.rbind.io/aRt

Source: github.com/nrennie/aRt

aRtData

Hex logo

aRtData is an R package containing data used in the aRt package. Data generating functions are available, and the data included in the package use the default values from the functions in aRt.

Documentation: nrennie.rbind.io/aRtData

Source: github.com/nrennie/aRtData

usefunc

Hex logo

usefunc is an R package containing some additional useful functions.

Documentation: nrennie.rbind.io/usefunc

Source: github.com/nrennie/usefunc