16 ms·
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 IM
by RK 16y ago
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)?
- revorad 16y agoOne reason is the huge number of R libraries available for doing statistical analysis and graphing.
- thesnark 16y agoPlots in R are far superior to those generated with matplotlib or other packages. Take a look at ggplot2.
- dododo 16y agowhat about 3D or 3D with time in R? this is what python has: http://code.enthought.com/projects/mayavi/ http://code.enthought.com/projects/mayavi/ i'm not really sure about far superior for 2D: http://matplotlib.sourceforge.net/users/screenshots.html http://matplotlib.sourceforge.net/users/screenshots.html vs. http://had.co.nz/ggplot2/ http://had.co.nz/ggplot2/
- Jach 16y agoWell 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.)
- revorad 16y agoI 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.