We’ll use the ggplot2 package, but the function we use to initialize a graph will be ggplot, which works best for data in tidy format (i.e., a column for every variable, and a row for every observation). So yeah…that gg is from “grammar of graphics.” With ggplot2, you can do more faster by learning one system and applying it in many places.” - R4DS “ggplot2 implements the grammar of graphics, a coherent system for describing and building graphs. Using ggplot2, the graphics package within the tidyverse, we’ll write reproducible code to manually and thoughtfully build our graphs. Also, if we haven’t built a graph with reproducible code, then we might not be able to easily recreate a graph or use that code again to make the same style graph with different data. In Excel, graphs are made by manually selecting options - which, as we’ve discussed previously, may not be the best option for reproducibility. Then, we’ll write reproducible code to build graphs piece-by-piece. xlsx, and CSV files) into R with the readr and readxl packages (both part of the tidyverse). In this session, we’ll first learn how to read some external data (from. 10.8 Add an image to your partner’s document.10.5 Make a graph of US commercial fisheries value by species over time with ggplot2.10.4 Find total annual US value ($) for each salmon subgroup. 10.3 Some data cleaning to get salmon landings by species.10.2 Attach packages, read in and explore the data.9.6.6 How do you avoid merge conflicts?.9.6.4 Sync attempts & fixes (Partner 1).9.6.2 Create a conflict (Partners 1 and 2).9.5.5 Clone to a new R Project (Partner 2).9.5.4 Clone to a new R Project (Partner 1).9.5.3 Give your collaborator privileges (Partner 1 and 2).9.5.2 Create a gh-pages branch (Partner 1).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |