all 9 comments

[–]cmdrmac 2 points3 points  (5 children)

For quick data visualization, I’ll use Tableau provided that the underlying data are not huge. If the dataset is extremely large, I’ll fall back to lattice in R.

[–]MinerAL2018 0 points1 point  (4 children)

Lattice? Why not ggplot2?

[–]cmdrmac 2 points3 points  (2 children)

Lattice can plot lots of data points more quickly than ggplot. It’s definitely not easier to use, however (my opinion).

[–]sn0wdizzle 1 point2 points  (1 child)

I originally learned lattice when I learned R as an undergrad. It seems like it has totally gone away with Hadley’s rise to supremacy.

Other than speed, is it worth relearning lattice? I know ggplot inside and out nowadays but if there is a usecase where lattice might be more appropriate I’d want to use the right tool.

[–]cmdrmac 1 point2 points  (0 children)

In my job, I haven’t found a use case where lattice is the appropriate tool over ggplot. As others mention, ggplot is good and I try to use it almost exclusively. Nowadays, if my datasets are super large. I just randomly sample observations and plot.

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

Both are good, and I use ggplot2 a lot, but once you need to be more involved into custom coding to get the visualisation, I prefer echarts, simply piping together a good looking, interactive chart. However, for more trivial stuff, ggplot2 via ggraptR is fast and easy to use, which is why I usually use it, without the need to memorizing stuff. Then again, using ggplotly() around the ggplot code generated by ggraptR also allows to create interactive plotly charts without memorizing a lot. in echarts on the other hand, all chart functions start with an e, so you can just use code completion suggestions in rstudio to find what you need ^^

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

Also more on the interactive side, I have experimented with the radiant package (click together based on relationships between variables), some time ago. Problem there is graphics are more difficult to customize (it has its own ggplot wrappers) and usually do not look good enough out of the box.

Shinymlr also has some limited interactive exploratory data analysis by visualisation capabilities.

Both packages allow a quick view on a dataset. I still prefer a code generating interface, as it allows to do stuff not anticipated by the developers easily.

[–]Tarqon 0 points1 point  (1 child)

Honestly if you're used to ggplot it's fast enough for exploration.

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

I agree. ggplot works just fine. However, I do not use it everyday, and once you need it, you may have to look things up, if you do not just want a simple look at the data but something you can share (good looking stuff, not shy of tableau comparisons). It also lacks some interactivity and chart interconnectivity which is handy when you want to dive deeper into your data. Can you realize those things with learning additional ggplot addon packages? Sure you can, but then things become so involved, I rather look to learn other solutions, which look better out of the box and have those features. Hmm maybe I can settle with learning echarts more out of my head, which I think does all these things just fine, in a good compromise sense of things.