Showing off ggplot2

128 views
Skip to first unread message

Kevin

unread,
Mar 1, 2013, 2:01:57 PM3/1/13
to ggp...@googlegroups.com
I started using ggplot2 in school to make great graphics that were betterthan what my classmates were creating and I'm now using it in the "real-world". I want to talk about ggplot2 at our next R users group and was curious what you guys would recommend showing off. What do you think coolest ggplot2 functions and graphics are? 

Thanks,
Kevin

baptiste auguie

unread,
Mar 1, 2013, 2:17:35 PM3/1/13
to Kevin, ggp...@googlegroups.com
I find that facetting and automatic legends never fail to impress. Themes are pretty sweet too.

But for me, it's really the articulate grammar that I try to sell, as in the second part of this presentation:

Cheers,

b.



--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kevin

unread,
Mar 1, 2013, 2:39:43 PM3/1/13
to ggp...@googlegroups.com, Kevin
Attached is the .pdf of the presentation you mentioned. 
93360631-Presentation.pdf

Ernest Adrogué

unread,
Mar 1, 2013, 2:52:25 PM3/1/13
to ggp...@googlegroups.com
1-03-2013, 11:01 (-0800); Kevin escriu:
Start with a bare scatter plot and show them how to add shape and colour
aesthetics and faceting. Also you may get ideas from here:

http://learnr.wordpress.com/tag/ggplot2/

Finally, if you want to "show off" I would change the default theme and use
one without a background or grid lines, it makes the plots look nicer and
cleaner. But this is just my opinion of course :-)

Brandon Hurr

unread,
Mar 1, 2013, 2:56:07 PM3/1/13
to ggp...@googlegroups.com
For laughs, you may want to make one of those xkcd plots. Doing so is also a good segway into how theming works. 
B

Hadley Wickham

unread,
Mar 1, 2013, 3:38:39 PM3/1/13
to Kevin, ggp...@googlegroups.com
A couple of my favourites are from James Cheshire:

* http://spatialanalysis.co.uk/2012/10/londons-twitter-languages/
* http://spatialanalysis.co.uk/2012/02/london-cycle-hire-pollution/

Hadley
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Chief Scientist, RStudio
http://had.co.nz/

M. Edward (Ed) Borasky

unread,
Mar 2, 2013, 12:19:47 AM3/2/13
to ggp...@googlegroups.com
You can also browse my "R for Journalists" Scoop.it profile - I have
been collecting cool R tricks there for a couple of weeks.

http://www.scoop.it/t/r-for-journalists

Most of them have code you can paste.
Twitter: http://twitter.com/znmeb; Computational Journalism Publishers Workbench
http://j.mp/CompJournBench/

I am not an IP address! I am a free man!

William Beasley

unread,
Mar 3, 2013, 10:43:33 AM3/3/13
to ggp...@googlegroups.com, Kevin
I like Baptiste's advice, and suggest adding a side-by-side comparison of the ggplot and base code (if you think it's appropriate for the audience).  From my perspective, it's not that ggplot can do things base graphics can't.  It's that it can generate a publication quality graph in 10 lines of code that requires base graphics at least 60.  Even more if you're faceting with a common x & y scale, and want to suppress the redundant axes in between the panels (eg, Baptiste's slide 14).

And as others have said before, the easier a graph is to produce & later modify coherently, the more thoroughly you can explore and describe the space.  I think thi s is important even if the graphs are seen by only your research team.
Reply all
Reply to author
Forward
0 new messages