Teaching ggplot2 through competitive code golf
The Business Analytics program at Monash University is data first
Students learn coding from week 1 of their degree, and are working with data from week 2
This means that students see code as part of their understanding, rather than as a result of their understanding
Tip
We’re up to Java 25 now… 👴
There is plenty of research that suggest competition amongst students enhances learning outcomes:
Chen, Law & Chen The effects of peer competition-based science learning game on secondary students’ performance, achievement goals, and perceived ability Interactive Learning Environments (2018)
Cagiltay et. al The effect of competition on learning in games Computers & Education (2015)
Anecdotally, we have run prediction competitions as assignments, and students are enormously engaged, start early, and regularly seek feedback
Code golf is a type of recreational computer programming in which participants aim to solve a problem [accurately] using the least number of characters in their source code.
In the depths of YouTube, Code Golf is a popular format for teaching programming concepts.
One of the most popular sites is CSSBattles, where players compete to write the shortest CSS code to match a target design.
ggplot battleswebR and javascript#| title: "Penguin Distributions"
#| dataset-name: "palmerpenguins::penguins"
#| colours: "`c('darkorange','purple','cyan4')`"
#| description: "The `palmerpenguins` dataset is one of the most famous in modern R programming. Data were collected and made available by [Dr. Kristen Gorman](https://www.uaf.edu/cfos/people/faculty/detail/kristen-gorman.php) and the [Palmer Station, Antarctica LTER](https://pallter.marine.rutgers.edu/), a member of the [Long Term Ecological Research Network](https://lternet.edu/). The original data is available [here](https://allisonhorst.github.io/palmerpenguins/)."
Approved for a real-world education experiment in ETC1010/5510: Introduction to data analysis
ggplot battles, the other does notggplot2 conceptsMonash uses Moodle as it’s eLMS. Quizzes are designed using the moodlequiz RMarkdown package, which makes generating quizzes from R code fairly seamless.
If you would like to use ggplotbattles.dev in your own teaching, please do, and please tell me about it.
If you have an idea for a battle, please submit it to the GitHub repo