Skip to content

GeekOnAcid/slopegraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tufte-Inspired Slopegraphs in R

Build Status

This repository holds some working code for creating slopegraphs in R.

This is very much a work in progress. Once it's more stable, I will release the package to CRAN.

Pull requests welcome. Please report any issues on the issues page.

The package currently includes only one function (slopegraph), which produces a slopegraph from an observation-by-period dataframe. Everything is more or less drawn automatically, but is highly customizable in terms of line and text colors, font sizes and styles, axes, titles, and plotting behind and in front of the slopegraph lines.

Examples

The current output of the slopegraph function (for the examples included in documentation) is shown below. The two examples use the GDP and cancer survival data described here and in Tufte's books.

The examples aim to mimic the plots drawn by Tufte (but to correct scale) and thus do not showcase the customizability of the package.

Cancer Survival Data

Cancer Survival

GDP Data

GDP

About

Edward Tufte-Inspired Slopegraphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%