viewport() missing from ggplot2?

825 views
Skip to first unread message

David Romano

unread,
Aug 16, 2014, 5:22:10 PM8/16/14
to ggp...@googlegroups.com
Hi, I was just trying to recreate the examples (in order) from section 8.4 of "ggplot2", "Multiple plots on the same page", but I get a "could not find function viewport" error -- is it part of a separate package, or is this a sign of something going wrong?

Thanks,
David

David Guy

unread,
Aug 16, 2014, 5:47:30 PM8/16/14
to David Romano, ggplot2
David,

Try loading package 'gridExtra'

HTH
David


--
--
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/d/optout.



--
David Guy, PhD
R Statistical Consulting Inc.
Flemington, NJ USA
 
Office: 908-237-5107
Cell:    917-941-5890
Fax:    908-284-0356
Skype: david.guy1213


David Romano

unread,
Aug 16, 2014, 6:24:39 PM8/16/14
to David Guy, ggplot2
Thanks, David -- it looks like I'll need to upgrade to use gridExtra, but you made me think to load grid instead, which does work.

Thanks again!
David

v.rom...@gmail.com

unread,
Feb 17, 2018, 9:38:18 AM2/17/18
to ggplot2
library(grid)
Reply all
Reply to author
Forward
0 new messages