Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have never used R, but why (in the beginning) would you generate data in python and then plot in R, rather than just plot in python (which looks much nicer IMO)?


Plots in R are far superior to those generated with matplotlib or other packages. Take a look at ggplot2.


what about 3D or 3D with time in R? this is what python has: http://code.enthought.com/projects/mayavi/

i'm not really sure about far superior for 2D: http://matplotlib.sourceforge.net/users/screenshots.html vs. http://had.co.nz/ggplot2/


I remember looking at that matplotlib page for the first time and coming away thinking those graphs look a lot better and sharper than the default R ones. However, I found the reason for that is the images on that page are quite high resolution PNGs. If you make graphs of 200dpi or more in R, they look equally good. The annoying thing though is that you have to adjust all the margins and character size settings in R to plot at a higher resolution.


Well done sir, you've just made me take the time to install Mayavi. (There were even a bunch of packages I had to unmask in Portage to do it.)


One reason is the huge number of R libraries available for doing statistical analysis and graphing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: