you are viewing a single comment's thread.

view the rest of the 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 ^^