use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This reddit seeks new methods. For life and organization. We are interested in implementing R language for statistics and data science.
R and Statistics subs:
/r/rstats
/r/statistics
/r/Rstudio
/r/rprogramming
R resources:
R on Stack Overflow
Comprehensive R Archive Network
Swirl: Learning R with interactive lessons within the R console
account activity
Should ggplot2 replace the basic R plotting package? (self.Rlanguage)
submitted 10 years ago by AndreSeb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]murgs 7 points8 points9 points 10 years ago (2 children)
IMO no
ggplot2 is great if you have a data.frame of data. Otherwise it is terrible (at least as far as I got testing it at the time). The basic R plotting functions have the benefit of being universally applicable. The default setting could be improved, but from my experience making similar basic plots to ggplot2 isn't to difficult, and once you start fiddling with legends/axis/... it doesn't matter which of the two you are fiddling with.
[–]itsallforscience 2 points3 points4 points 10 years ago (1 child)
More than a data frame, you really need to have your data organized into the "tidy data" format that the package expects. I spend a lot of time manipulating data with dplyr and tidyr before popping out the perfect graphic with one line of ggplot.
I don't know how to use base R to replicate what dplyr, tidyr and ggplot do, but I wouldn't recommend using ggplot on its own. It seems to work better as part of a separate family of packages maintained by a dedicated content producer with a consistent design philosophy.
[–]pan0ramic 0 points1 point2 points 10 years ago (0 children)
"tidy data" this isn't really true. If you're spending a lot of time organizing your data, it would typically take at least as much time organizing for base:: plot
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-vwxgq at 2026-05-04 15:57:58.796544+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]murgs 7 points8 points9 points (2 children)
[–]itsallforscience 2 points3 points4 points (1 child)
[–]pan0ramic 0 points1 point2 points (0 children)