←back to thread

Big Book of R

(www.bigbookofr.com)
288 points sebg | 1 comments | | HN request time: 0s | source
Show context
wpollock ◴[] No.43646498[source]
Very nice, but instead of an owl, shouldn't the cover illustration be a pirate?
replies(4): >>43646689 #>>43647343 #>>43647370 #>>43649428 #
DadBase ◴[] No.43647370[source]
Totally agree. R is pure pirate energy. Half the functions are hidden on purpose, the other half only work if you chant the right incantation while facing the CRAN mirror at dawn.
replies(3): >>43647653 #>>43650973 #>>43652227 #
MrLeap ◴[] No.43647653[source]
If you started with SAS for statistics like I did, you'd see how absolutely civilized R is in comparison.
replies(1): >>43647669 #
kylebenzle ◴[] No.43647669[source]
Yes but today I find little to no benefit over python
replies(2): >>43647811 #>>43648686 #
raffael_de ◴[] No.43647811[source]
no plotting library available in python even comes close to ggplot2. just to give one major example. another would be the vast amount of statistics solutions. but ... python is good enough for everything and more - so, it doesn't really feel worth maintaining two separate code bases and R is lacking in too many areas for it to compete with python for most applications.
replies(4): >>43647912 #>>43648531 #>>43649435 #>>43654033 #
1. YeGoblynQueenne ◴[] No.43649435[source]
>> no plotting library available in python even comes close to ggplot2.

I so disagree. I've used R for plotting and a bit of data handling since 2014, I believe, to prove to a colleague I could do it (we were young). After all this time I still can't say I know how to do anything beyond plotting a simple function in R without looking up the syntax.

Last week I needed to create two figures, each with 16 subplots, and make sure all the subplot axis labels and titles are readable when the main text is readable (with the figure not more than half a page tall). On a whim I tried matplotlib, which I'd never tried before and... I got it to work.

I mean I had to make an effort and read the dox (OMG) and not just rummage around SO posts, but in like 60% of the time I could just use basic Python hacking skillz to intuit the right syntax. That is something that is completely impossible (for me anyway) to do in R, which just has no rhyme or reason, like someone came up with an ad-hoc new bit of syntax to do every different thing.

With Matplotlib I even managed to get a legend floating on the side of my plot. Each of my plots has lines connecting points in slightly different but overlapping scales (e.g. one plot has a scale 10, 20, 30,another 10, 20, 30, 40, 50) but they share some of the lines and markers automatically, so for the legend to make sense I had to create it manually. I also had to adjust some of the plot axis ticks manually.

No sweat. Not a problem! By that point I was getting the hang of it so it felt like a piece of cake.

And that's what kills me with R. No matter how long I use it, it never gets easier. Never.

I don't know what's wrong with that poor language and why it's such an arcane, indecipherable mess. But it's an arcane and indecipherable mess and I'm afraid to say I don't know if I'll ever go back to it again.

... gonna miss it a little though.

Edit: actually, I won't. Half of my repos are half R :|