First, things first, run the code chunk at the very top of the document, to set things up. Remember you can run a code chunk by:
Command
+ Shift
+ Return
on a Mac or Ctrl
+ Shift
+ Enter
on a PCNow try running code chunks each of the three ways. Run the first chunk below using the arrow inside it
image(volcano, col = viridis(200))
Run this code chunk using the Run drop down menu
image(volcano, col = viridis(200))
Run this code chunk using keyboard commands
image(volcano, col = viridis(200))
You should have gotten the same output for all three chunks.
Remember, to create a code chunk
Make your own code chunk in the space below, and then copy the code between backticks image(volcano, col = viridis(200, option = 'A'))
and try running it.
image(volcano, col = viridis(200, option = 'A'))
For the lines of text below, add the appropriate symbols to make the text what it says. For example, if the line says, “Make me inline text” add backticks around it so it becomes inline text, Make me inline text
. You can always reference the class materials or Google for help.
Make me bold
Make me italicized
Make the stuff below into an unordered list.
Make the stuff below into an ordered (numbered) list.
Finally, try knitting this by hitting the Knit
button in RStudio