discovr {discovr}R Documentation

discovr: Resources for Discovering Statistics Using R and RStudio (Field, 2023)

Description

The discovr package contains interactive learnr tutorials and datasets that accompany my textbook Discovering Statistics Using R and RStudio.

Who is the package aimed at?

Anyone teaching from or reading Discovering Statistics Using R and RStudio should find these resources useful.

Interactive tutorials

Getting started:

I recommend working through this tutorial on how to install, set up and work within R and RStudio before starting the interactive tutorials.

Running a tutorial:

To run each tutorial execute

learnr::run_tutorial("name_of_tutorial", package = "discovr")

Replacing name_of_tutorial with the name in bold below. For example, to load the tutorial discovr_02 execute:

learnr::run_tutorial("discovr_02", package = "discovr")

Workflow:

The tutorials are self-contained (you practice code in code boxes) so you don't need to use RStudio at the same time. However, to get the most from them I would recommend that you create an RStudio project and within that open (and save) a new R Markdown file each time to work through a tutorial. Within that Markdown file, replicate parts of the code from the tutorial (in code chunks) and use Markdown to write notes about what you have done, and to reflect on things that you have struggled with, or note useful tips to help you remember things. Basically, write a learning journal. This workflow has the advantage of not just teaching you the code that you need to do certain things, but also provides practice in using RStudio itself.

Datasets

See the book or data descriptions for more details. This is a list of available datasets within the package. Raw CSV files are available from the book's website.

Smart Alex solutions

Solutions for end of chapter tasks are available at www.discovr.rocks/solutions/alex/.

Labcoat Leni solutions

Solutions for the Labcoat Leni tasks are available at www.discovr.rocks/solutions/leni/.

Chapter code

Although I recommend working through the interactive solutions, each book Chapter has online code and a downloadable R Markdown file available from www.discovr.rocks/solutions/leni/.

Colour palettes

Colour palettes

A colour blind-friendly pallette based on Okabe and Ito. Also colour themes based around the studio albums of my favourite band Iron Maiden. If you're wondering why some albums are missing, here's the explanation: X Factor (would basically be 8 shades of grey), Fear of the Dark (terrible album), The Book of Souls (would be 8 shades of black). The following palettes exist.

References

Author(s)

Maintainer: Andy Field andyf@sussex.ac.uk [copyright holder]

See Also

Useful links:


[Package discovr version 0.2.2 Index]