Scratchpad
Design figures or run arbitrary R code
This page is blank for you to write your own code: design figures, explore R, or whatever you need.
Your code is kept in this browser. You can Import code you saved using Export all code (page footer).
Loading course data
This block runs when the page loads. It loads the packages and the data the exercise pages use, so code you wrote there should (🤞) also work here.
drax_generation.csv is in your drax repo, but not biomass.
Your code
Ask a new question on the Code Q&A discussion board. The discussion board allows anyone else who is stuck on the same thing to learn from (or provide!) the answer. We are notified of new posts, and will reply when we’re next available.
The board is private to this class, so sign in to GitHub first.
Save your work
Export all code Import code
Export all code downloads every box on this page as one R file. Each box sits under a line like # Exercise 1: … [w2_1] ----; keep those lines if you edit the file, and Import code can put it back into the boxes on any computer. Your code is also kept in this browser as you type, so reloading the page doesn’t lose it.
The file downloads as scratchpad.R. Rename it to say what it does (for example figures/biomass-share.R), put it in your repo, then commit and push via GitHub Desktop.