O. Petchey, A. Beckerman, Natalie Cooper, D. Childs
{"title":"Getting to grips with ggplot2","authors":"O. Petchey, A. Beckerman, Natalie Cooper, D. Childs","doi":"10.1093/oso/9780198849810.003.0007","DOIUrl":null,"url":null,"abstract":"We have made quite a few graphs already but only briefly explained how we did so, specifically using ggplot. We need a deeper understanding… hence this chapter. We focus on making graphs with ggplot2. The ggplot2 package can help us to produce quite complex visualizations, with elements such as graphical keys, without the need to write lines and lines of R code. It is, nevertheless, still flexible enough for us to tweak the appearance of a figure so that it meets our specific needs. This chapter describes the underlying principles of the grammar used in ggplot2, and then demonstrates various kinds of plots and modifications to plots that ggplot2 can implement.","PeriodicalId":396940,"journal":{"name":"Insights from Data with R","volume":"61 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-02-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Insights from Data with R","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/oso/9780198849810.003.0007","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We have made quite a few graphs already but only briefly explained how we did so, specifically using ggplot. We need a deeper understanding… hence this chapter. We focus on making graphs with ggplot2. The ggplot2 package can help us to produce quite complex visualizations, with elements such as graphical keys, without the need to write lines and lines of R code. It is, nevertheless, still flexible enough for us to tweak the appearance of a figure so that it meets our specific needs. This chapter describes the underlying principles of the grammar used in ggplot2, and then demonstrates various kinds of plots and modifications to plots that ggplot2 can implement.