TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ggplot2 – The code powering all those excellent charts is 10 years old

93 pointsby cgmilalmost 8 years ago

6 comments

RA_Fisheralmost 8 years ago
I&#x27;ve pretty much built my career using ggplot2 charting. Grammar of graphics is a really smart idea. Hadley&#x27;s a master interface designer and decent human-being to boot! :)<p>I really can&#x27;t express how thankful I am for Hadley&#x27;s work.
minimaxiralmost 8 years ago
ggplot2 <i>is</i> the primary reason to use R. Not that Python&#x27;s modern charting libraries like bokeh&#x2F;seaborn are bad, but ggplot2 is so robust and customizable while requiring very little LOC. And that doesn&#x27;t even include external libraries which extended ggplot2, including pairs plots (<a href="https:&#x2F;&#x2F;rdrr.io&#x2F;cran&#x2F;GGally&#x2F;man&#x2F;ggpairs.html" rel="nofollow">https:&#x2F;&#x2F;rdrr.io&#x2F;cran&#x2F;GGally&#x2F;man&#x2F;ggpairs.html</a>) and <i>automatic interactive charts</i> with plotly (<a href="https:&#x2F;&#x2F;plot.ly&#x2F;ggplot2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;plot.ly&#x2F;ggplot2&#x2F;</a>)<p>ggplot 2.2.0 added a lot of customization features which make it easier to make a plot look more unique than the stereotypical ggplot2 chart, which I plan to cover in a tutorial soon. (here&#x27;s an older ggplot2 tutorial of mine which still holds up: <a href="http:&#x2F;&#x2F;minimaxir.com&#x2F;2015&#x2F;02&#x2F;ggplot-tutorial&#x2F;" rel="nofollow">http:&#x2F;&#x2F;minimaxir.com&#x2F;2015&#x2F;02&#x2F;ggplot-tutorial&#x2F;</a> )
评论 #14583225 未加载
评论 #14583550 未加载
评论 #14584474 未加载
buffont32almost 8 years ago
I don&#x27;t think I&#x27;ve used a plotting system that even comes close to ggplot2 in terms of intuitiveness. I honestly don&#x27;t think that R would be held in such high esteem without Wickham&#x27;s contributions.
评论 #14582355 未加载
eclecticscepticalmost 8 years ago
I&#x27;ve gotten a fair amount of 100 percents, and most recently a job, for which a lot of the credit goes to ggplot.<p>The funniest bit is that the non-technical think it&#x27;s something extremely complicated when in reality, after somewhat of a learning curve, it&#x27;s more intuitive than plotting in excel.
评论 #14584819 未加载
kraematealmost 8 years ago
I&#x27;ve always wanted to switch from python&#x27;s matplotlib to ggplot, but never found sufficient advantages to make the switch. Especially considering that I use python for doing data analysis, and pandas+ipython-notebook can be tightly integrated with matplotlib.<p>Plus I&#x27;ve found it easier to create compact figures necessary for academic publishing with matplotlib. ggplot&#x27;s defaults create graphs that take up too much space!
评论 #14582841 未加载
jtcond13almost 8 years ago
To those of you who hate R, consider investing 1&#x2F;2 hour to learn the dplyr package. Dplyr is, in my view, Hadley Wickham&#x27;s real masterpiece and is why I use R for most data analysis nowadays.<p>As for ggplot, the &#x27;grammar of graphics&#x27; approach makes it intuitive to get started with but I often run into trouble with both the inheritance hierarchy and with getting graphics &#x27;the last mile&#x27; to presentation-quality.<p>My favorite ggplot2 graphic? The London Cycle Hires Map:<p><a href="http:&#x2F;&#x2F;spatial.ly&#x2F;2012&#x2F;02&#x2F;great-maps-ggplot2&#x2F;" rel="nofollow">http:&#x2F;&#x2F;spatial.ly&#x2F;2012&#x2F;02&#x2F;great-maps-ggplot2&#x2F;</a>