Visualizing Data in R 4: Graphics Using the Base, Graphics, Stats, and Ggplot2 Packages
暫譯: 在 R 4 中視覺化數據:使用 Base、Graphics、Stats 和 Ggplot2 套件的圖形
Tollefson, Margot
相關主題
商品描述
Master the syntax for working with R's plotting functions in graphics and stats in this easy reference to formatting plots. The approach in Visualizing Data in R 4 toward the application of formatting in ggplot() will follow the structure of the formatting used by the plotting functions in graphics and stats. This book will take advantage of the new features added to R 4 where appropriate including a refreshed color palette for charts, Cairo graphics with more fonts/symbols, and improved performance from grid graphics including ggplot 2 rendering speed.
Visualizing Data in R 4 starts with an introduction and then is split into two parts and six appendices. Part I covers the function plot() and the ancillary functions you can use with plot(). You'll also see the functions par() and layout(), providing for multiple plots on a page. Part II goes over the basics of using the functions qplot() and ggplot() in the package ggplot2. The default plots generated by the functions qplot() and ggplot() give more sophisticated-looking plots than the default plots done by plot() and are easier to use, but the function plot() is more flexible. Both plot() and ggplot() allow for many layers to a plot.
The six appendices will cover plots for contingency tables, plots for continuous variables, plots for data with a limited number of values, functions that generate multiple plots, plots for time series analysis, and some miscellaneous plots. Some of the functions that will be in the appendices include functions that generate histograms, bar charts, pie charts, box plots, and heatmaps.
What You Will Learn
- Use R to create informative graphics
- Master plot(), qplot(), and ggplot()
- Discover the canned graphics functions in stats and graphics
- Format plots generated by plot() and ggplot()
Who This Book Is For
Those in data science who use R. Some prior experience with R or data science is recommended.
商品描述(中文翻譯)
掌握使用 R 的繪圖函數在圖形和統計中的語法,這本簡易參考書將幫助您格式化圖表。《Visualizing Data in R 4》中對於 ggplot() 格式化應用的方式將遵循圖形和統計中繪圖函數所使用的格式結構。本書將在適當的地方利用 R 4 中新增的功能,包括為圖表更新的顏色調色板、具有更多字型/符號的 Cairo 圖形,以及來自 grid graphics 的性能改進,包括 ggplot 2 的渲染速度。
《Visualizing Data in R 4》首先介紹基本概念,然後分為兩個部分和六個附錄。第一部分涵蓋函數 plot() 及其輔助函數。您還將看到函數 par() 和 layout(),這些函數可以在一頁上顯示多個圖表。第二部分介紹如何在 ggplot2 套件中使用函數 qplot() 和 ggplot() 的基本知識。函數 qplot() 和 ggplot() 生成的預設圖表比 plot() 生成的預設圖表更具複雜性且更易於使用,但函數 plot() 更具靈活性。plot() 和 ggplot() 都允許在圖表中添加多個層次。
六個附錄將涵蓋列聯表的圖表、連續變數的圖表、有限值數據的圖表、生成多個圖表的函數、時間序列分析的圖表以及一些雜項圖表。附錄中將包含生成直方圖、條形圖、圓餅圖、箱型圖和熱圖的函數。
**您將學到的內容**
- 使用 R 創建資訊豐富的圖形
- 精通 plot()、qplot() 和 ggplot()
- 探索 stats 和 graphics 中的現成圖形函數
- 格式化由 plot() 和 ggplot() 生成的圖表
**本書適合誰閱讀**
本書適合使用 R 的數據科學工作者。建議具備一些 R 或數據科學的先前經驗。
作者簡介
Margot Tollefson, PhD is a semi-retired freelance statistician, with her own consulting business, Vanward Statistics. She received her PhD in statistics from Iowa State University and has many years of experience applying R to statistical research problems. Dr. Tollefson has chosen to write this book because she often creates graphics using R and would like to share her knowledge and experience. Her professional blog is on WordPress at vanwardstat. Social media: @vanstat
作者簡介(中文翻譯)
Margot Tollefson 博士是一位半退休的自由職業統計學家,擁有自己的顧問公司 Vanward Statistics。她在愛荷華州立大學獲得統計學博士學位,並在將 R 應用於統計研究問題方面擁有多年經驗。Tollefson 博士選擇撰寫這本書,因為她經常使用 R 創建圖形,並希望分享她的知識和經驗。她的專業部落格位於 WordPress 的 vanwardstat。社交媒體:@vanstat