技术控

今日:199| 主题:51370

[其他] The Hitchhiker’s Guide to Ggplot2 in R

STRANCERA 发表于 2016-12-1 05:17:33
126 1

立即注册CoLaBug.com会员，免费获得投稿人的专业资料，享用更多功能，玩转个人品牌！

x
(This article was first published on Reimagined Invention , and kindly contributed toR-bloggers)

This is a technical book. The scope of the book is to go straight to the point and the writing style is similar to a recipe with detailed instructions. It is assumed that you know the basics of R and that you want to learn how to create beautiful plots.
Each chapter will explain how to create a different type of plot, and will take you step-by-step from a basic plot to a highly customised graph. The chapters’ order is by degree of difficulty.
Every chapter is independent from the others. You can read the whole book or go to a section of interest and we are sure that it will be easy to understand the instructions and reproduce our examples without reading the first chapters.
In total this book contains 218 pages (letter paper size) of different recipes to obtain an acceptable aesthetic result. You can download the book for free (yes, really!) from Leanpub .

• Chapter 1: Line plots
• Chapter 2: Area plots
• Chapter 3: Bar pots
• Chapter 4: Stacked bar plots
• Chapter 5: Scatteplots
• Chapter 6: Weighted scatterplots
• Chapter 7: Histograms
• Chapter 8: Density plots
• Chapter 9: Function plots
• Chapter 10: Boxplots
• Chapter 11: Linear regression plots
• Chapter 12: LOWESS plots
We also included a pack that contains the Rmd files that we used to generate every chart that is displayed in the book.
How the book started?

A few months ago I finished writing the eleventh tutorial in a series on using ggplot2 I created with Jodie Burchell. Jodie holds a PhD, now she’s in the industry and she loves data. I highly recommend reading her blog Standard Error where you can find really good material on Reproducible Research among other things.
A few weeks later those tutorials evolved into the shape of an ebook. The reason behind it was that what we started to write had an unexpected success, and we even had RTs from important people in the R community such as Hadley Wickham. Finally the book was released by Leanpub.
About me, I asked Jodie to co-write a blog entry when I found her blog and I realised that my interest in Data Science/科学数据专业化 and R Programming/R 编程语言 was reflected on her blog.
Why Leanpub?

Leanpub is a platform where you can easily write your book by using MS Word among other writing software and it even has GitHub and Dropbox integration. We went for R Markdown with LaTeX output, and that means that Leanpub is both easy to use and flexible at the same time.
Even more, Leanpub enables the audience to download your books for free, if you allow it, or you can define a price range with a suggested price indication. The website gives the authors a royalty of 90% minus 50 cents per sale (compared to other platforms this is convenient for the authors). You can also sell your books with additional exercises, lessons in video, etc.
What I learned from my first book?

At the moment I am teaching Data Visualization and from my students I learned that good visualizations come after they learn the visualization concepts. Coding cleary helps but coding goes after the fundamentals. It would be better to teach the fundamentals first and not in parallel with coding, and this applies specially when your audience has never wrote code before.
The interested reader may find some remarkable books that can be read before mine. I highly recommend:

• Data Visualisation: A Handbook for Data Driven Design
• Storytelling with Data: A Data Visualization Guide for Business Professionals
• The Functional Art: An introduction to information graphics and visualization .
Those are really good books that show the fundamentals of Data Visualisation and provide the key concepts and rules needed to communicate effectively with data.

 我来查水表的

• 20+ Awesome Open-Source Android Apps To

The best way to learn is to read and that’s [...]

• 王健林创业三年被告222次，刘强东34岁一夜

大佬的首次创业比你想象中要惨很多，那时候 [...]

• 清科数据：12月投资数量小幅上升 人工智能

12月19日，国务院关于印发“十三五”国家战略性 [...]

• 爱上你就是爱上了心痛 微信背景图片

深爱是胸口有雷霆万钧，唇齿之间只有云淡风 [...]

• 2017支付宝五福卡有多少人集齐？集福套路都

前两天看新闻，有媒体称支付宝上已经有50万人集 [...]

• 00后人群年终调查研究报告 小肚皮大数据最

2016年网友们是不是每天被网上的洪荒之力 [...]

• 我的天啊！怎么又缺少了 点击本文领取你的

2.5亿现金红包!腾讯QQ春节红包今日开抢 红包入口 [...]

• 新成立公司数量不足去年四分之一？2016年中

一 　　成立时间：创业热度趋于冷静 　　 [...]

• 华为移动电源快充版AP09Q拆解评测

感谢充电头网的投递 2016年盛夏华为推出了第一 [...]

• Voice at 700 Bits Per Second

All other things being equal, signals with [...]

© 2001-2017 Comsenz Inc. Design: Dean. DiscuzFans.