Visualization & ggplot2 Lab - Stanford University
Transcript of Visualization & ggplot2 Lab - Stanford University
![Page 1: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/1.jpg)
Visualization & ggplot2 Lab
![Page 2: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/2.jpg)
Goals for the session
1. Discuss the principles of good vs bad data viz2. Understand the grammar of graphics
4. Introduce, explain and use ggplot()5. Discuss how to select the most appropriate plots
6. Visualization and discovery of global trends
![Page 3: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/3.jpg)
![Page 4: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/4.jpg)
![Page 5: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/5.jpg)
![Page 6: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/6.jpg)
Goals for the session
1. Discuss the principles of good vs bad data viz2. Understand the grammar of graphics
3. Introduce, explain and use ggplot()4. Discuss how to select the most appropriate plots
5. Visualization and discovery of global trends
![Page 7: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/7.jpg)
![Page 8: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/8.jpg)
ggplot grammar of graphics
- datasets (nouns)- geometric objects (verbs): visual presentations of the data (points, lines, rectangles, contours..)- aesthetics (adverbs): instructions on how to map data variables to geometric objects- stat. transformations/summaries (line fitting, binning)- coordinate systems and scales (linear, log, rank)- layers: overlay- facets: separating data into multiple subplots- settings (text size, font, alignment, angle, positioning)
![Page 9: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/9.jpg)
![Page 10: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/10.jpg)
![Page 11: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/11.jpg)
![Page 12: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/12.jpg)
![Page 13: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/13.jpg)
![Page 14: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/14.jpg)
![Page 15: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/15.jpg)
![Page 16: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/16.jpg)
![Page 17: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/17.jpg)
![Page 18: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/18.jpg)
![Page 19: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/19.jpg)
![Page 20: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/20.jpg)
![Page 21: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/21.jpg)
![Page 22: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/22.jpg)
![Page 23: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/23.jpg)
![Page 24: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/24.jpg)
![Page 25: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/25.jpg)
![Page 26: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/26.jpg)
![Page 27: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/27.jpg)
![Page 28: Visualization & ggplot2 Lab - Stanford University](https://reader030.fdocuments.in/reader030/viewer/2022012609/619cab708af3b41b0a0cd14b/html5/thumbnails/28.jpg)
Acknowledgments
● Susan Holmes● Wolfgang Huber● Sudarshan Shetty● Wisam Saleem