pct_amphipoda (numeric) relative abundance of Amphipoda taxa. pct_ephemeroptera (numeric) relative abundance of Ephemeroptera taxa.shannon (numeric) Shannon-Wiener diversity index values.conductivity (numeric) specific conductivity (µS/cm).substrate_size_d50 (numeric) median particle size from pebble count.long (numeric) longitude of sampling location.lat (numeric) latitude of sampling location.lake (character) lake code: caz = Cazenovia lake, onon = Onondaga, and ot = Otisco.Add the following unordered list describing the contents of the imported data.Add plain text description above the code chunk.Add a name to this code chunk header and all subsequent code chunk headers.read.csv(file = file.path("data", "zms_thesis_metrics.csv"), stringsAsFactors = FALSE).Add a code chunk using Ctrl + Alt + i to import the example data set.The point of this exercise is to get you familiar with code chunks and inline code, NOT to test your R knowledge therefore, I have included the necessary code below each task. To cross reference a figure by name in the text use Using the example from the figure below, you might write “In we can see that the species setosoa tend to have shorter sepal lengths than the other two species.” For more information visit. When you render the document the figures will now be automatically numbered by the order they appear in the document. Specify in the YAML header that the output should be “html_document2” from the bookdown package ( output: bookdown::html_document2). To this you will first need to install the package bookdown ( install.packages("bookdown")). In many cases, you will want the captions to be numbered and you will want this to occur automatically. Notice that plot dimensions have changed from the previous image and a caption has been added to the bottom of the figure. Here I have specified fig.width, fig.height, and fig.cap. Here is an example of the plot output form a code chunk. fig.cap provides the ability to add a caption below the figure generated from a given code chunk. The fig.width and fig.height options allow you to control the size of the figure generated from a given code chunk. 11.1 Extract and Run R-Code from R Markdown Filesġ0.1.2.3 fig.width, fig.height, and fig.cap.10 Lesson 5: Code Chunks and Inline Code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |