This is a course for use with the swirl R package. swirl is a platform for learning (and teaching) statistics and R interactively via the R console.
The excellent DiagrammeR package, is a tool for producing diagrams and network graphs in R. There is very good documentation available for the package (at the above link), but learning by doing is often best and that’s where swirl thrives!
This course will guide you through some of the basics of DiagrammeR and give you some hands on experience with the package. Hopefully this will serve as a great springboard for you so that you can produce all kinds of wonderful diagrams in future.
First make sure you have swirl installed:
Or alternatively get the latest development version:
install.packages("devtools") devtools::install_github("swirldev/swirl", ref = "dev")
Then to install this course and get started simply run:
library(swirl) install_course_github("jonmcalder", "DiagrammeR") swirl()
At the moment this course is still very much a work in progress but please feel free to give it a try in it’s current state and report any problems you have or leave suggestions for improvement on the issues page as you work through the lessons.
If you are able to submit a pull request that would be even better! :-)
I would like to commend them for the excellent documentation for swirl and swirlify as this really facilitates the process of getting started.
And of course big thanks to @rich-iannone, the creator of the awesome DiagrammeR package, who has also clearly put a lot of effort into the documentation for the package.