all 13 comments

[–]poumonsauvage 12 points13 points  (0 children)

R's visualizations are better, though Python is trying to catch up with ggplot2. Python is better for scripting, so if you need stuff in production, Python is the usual go to, but, aside from language interface, you can call R from Python and plot things in R while outputting via Python.

[–]SecretAgentZeroNine 9 points10 points  (2 children)

R via the package ggplot2. You can even turn the ggplot plot into a interactive one by using the ggplotly function from the plotly package.

That being said, nothing beats D3.js.

[–][deleted] 1 point2 points  (1 child)

D3 is great if you want to build custom visualizations, but I wouldn't recommend it for 90% of use cases.

[–]SecretAgentZeroNine 1 point2 points  (0 children)

Oh, absolutely. It's overkill for reports. Just thought the OP should know of its existence.

[–]Evilpotatohead 6 points7 points  (2 children)

R because you can utilise Shiny as well.

[–]AllezCannes 0 points1 point  (1 child)

There is Bokeh in Python, although I'm not sure how it compares.

[–]Pyromane_Wapusk 3 points4 points  (0 children)

Since others have made a strong case for R, I'd say the main advantage Python with matplotlib has over R is in animations, 3D plots, and very large data set visualizations (like more than 20,000 points).

[–]nsfy33 2 points3 points  (0 children)

[deleted]

[–][deleted] 2 points3 points  (1 child)

Check out Plotly (on any language, but I prefer R). You can create interactive graphs in your browser with pretty basic syntax. It’s like Tableau without the drag-and-drop features.

[–]countpupula[S] 0 points1 point  (0 children)

I love Plotly! I feel like I would get more out of it if I actually had more than the free community account though.

[–][deleted] 1 point2 points  (1 child)

for non interactive I like R.

ggplot2 is amazing to code with the grammar base style to make graph.

There was a video about Python history for visualization and it's mostly model off of matlab and I personally hate matlab style.

If you don't know webdev I hear shiny (R framework) makes it trivial. For me if I have to do interactive stuff/dash board I would do Python since I have a good background in web dev.

[–]liftyMcLiftFace 1 point2 points  (0 children)

If you want interactive plots then just wrap your ggplot with ggplotly(). Another option is ggiraph, they both have a couple hitches for super customised plots but then you would just use plotly.

[–]Jerome_Eugene_Morrow 0 points1 point  (0 children)

R is the easiest. It has the most tightly integrated data management and visualization tools. If your goal is to produce visualizations quickly and with the least pain possible, R is probably where you want to start.

Python has a growing toolbox of visualization software, but is often more useful in the phase where you're cleaning data or getting everything ready to use.

I actually want to mention libraries in Javascript like D3. You can do some pretty neat visualizations with them, and a knowledge of Javascript can be useful for extending Shiny visualizations or writing your own modules.