5 ms·
I've been a Python lover for decades. I dislike a lot of characteristics of the R language, but the ggplot2 package is superior to anything in Python visualizat
by neves 6y ago
I've been a Python lover for decades. I dislike a lot of characteristics of the R language, but the ggplot2 package is superior to anything in Python visualization space. It is really excellent.
- c06n 6y agoDepends, it does not do interactive 3D-plots. For that, Plotly is the only performant lib I know.
- xioxox 6y agoHave a go with the Veusz package (I'm lead author). It does interactive 3D plots, has a GUI and Python interface. I think the 3D speed is reasonable (providing the BSP clipping isn't switched on). http://veusz.github.io/ http://veusz.github.io/
- neves 6y ago3D plots are usually bad :-) Your vision system can't compare volume very well.
- crispyambulance 6y agoWickham was really on to something with ggplot and it's graphical grammar concept for plots. That and Tidyverse in general, I believe, has saved R from irrelevance. I wish more projects would use that way of thinking but it seems that in the jupyter/julia/python world there's too many choices and they all attempt a "kitchen-sink" approach for visualization.
- bransonf 6y ago> Tidyverse in general, I believe, has saved R from irrelevance. It’s interesting that you say this. I’ve been using R daily for almost 3 years now, and I was originally taught the Tidyverse. However, I also tutored in biostats and have collaborated with many different faculty and students. On one hand the Tidyverse created an opening for R learners especially, but it has lead to some controversy as well. Trust me when I say there are plenty of R users who have never heard of or used the Tidyverse. It leads to some difficulty in teaching/collaborating because do I use grepl or str_detect? lapply or map? Do they know the magrittr syntax (%>%)? Then there’s non-standard evaluation, which often forces some arbitrary meta-programming on novice programmers. R is foremost the stats language, and tidyverse has attempted to make it more general purpose, for better or worse depending on who you ask.
- disgruntledphd2 6y agoTidyverse is much, much harder to write functions for, which is pretty bad for beginners. The API is lovely, but the non-standard evaluation causes real problems for people. True story: writing tidyverse functions is so hard that I once worked for a company with business critical code running in incredibly long R-scripts with almost no functions, and 100 line pipes. While that may be an extreme example, base-R is much, much easier to get started writing functions for (like I've been using R for a decade now, and the "idiomatic" way to use NSE with ggplot and dplyr has changed multiple times over that time). Meanwhile, base-R is fugly, but its solid and backwards-compatible to a fault.
- antipaul 6y agoAs a huge fan of tidyverse, I have to agree. Tidy eval is anything but. However, once they get that right, then tidyverse is close to perfection I think the newish “interpolation” syntax with double braces {{ }} is getting there.
- vharuck 6y agoThe biggest difficulty of NSE is not the syntax, but the requirement to hold parallel mental models while writing the code: symbolic expressions and value manipulation. Juggling will always be difficult.
- disgruntledphd2 6y agoSee, it's changed again! Damnit Hadley, why must you do this to me? (Really I'm bitter because I know that I'll end up maintaining a bunch of important code in version N-2 of Hadley's NSE adventures at some point in the future).
- antipaul 6y agoChanged, yes, and finally in the right direction I would say!
- disgruntledphd2 6y agoHonestly, R will be fine, even apart from tidyverse. There's a huge shadow universe of scientists running particular R packages for these analyses, which never gets seen from HN/programmers. While Python is definitely (sadly, IMO) a better language for building ML systems (because more people know it, and it's harder to write impenetrable code), R is definitely a better DSL for statistical analysis, modelling and graphics. It's a shame that R takes its lineage from a language developed in the 70's (S), as that's a cause of many of the inconsistencies in the core language.
- crispyambulance 6y agoI agree R would have been "fine" without Tidyverse-- in the sense that it would keep a persistent survivable niche base. I suspect, however, that it would not be anywhere near the top 10 of the TIOBE index like it is now and that it's userbase would consist of mostly of statistics practitioners rather than huge swathes of people that need to perform any basic data analysis.
- throwaway4007 6y agoR has always been relevant and isn't going away any time soon. The language is ugly and flawed and has a bunch of quirks and gotchas but there are just too many libs. Also for a lot of people R is going to be the first and often only language they're going to learn because they have no use for programming outside of statistical analyses and it's damn practical for that single use. Right now generations of students are being taught in R, right now bioconductor is booming and being added to everyday. That stupid arrow assignment operator has plenty of good years ahead of it.
- throwaway4007 6y agoI was honestly blown out of the water discovering ggplot2 after years of matplotlib, and a bit infuriated that I didn't make the effort to get into R sooner.
- neves 6y agoThis thing can become really big, if this is a JetBrains supported lib, instead of just an employee side project