Skip to content
Back to formatted view

Raw Message

Message-ID: <f8e6ff050903021048l3df1a393m8f41f4eb4dafa325@mail.gmail.com>
Date: 2009-03-02T18:48:16Z
From: Hadley Wickham
Subject: ways to put multiple graphs on single page (using ggplot2)
In-Reply-To: <93d6f2a80903021035pe278b77uf9f66a0d00d53adb@mail.gmail.com>

Hi Juliet,

Have a look at the last section in http://had.co.nz/ggplot2/book/polishing.pdf

Hadley

On Mon, Mar 2, 2009 at 12:35 PM, Juliet Hannah <juliet.hannah at gmail.com> wrote:
> Hi, Here are three plots:
>
> library(ggplot2)
> data(diamonds)
> randind <- sample(nrow(diamonds),1000,replace=FALSE)
> dsmall <- diamonds[randind,]
>
> qplot(carat, data=dsmall, geom="histogram",binwidth=1)
> qplot(carat, data=dsmall, geom="histogram",binwidth=.1)
> qplot(carat, data=dsmall, geom="histogram",binwidth=.01)
>
> What are ways to put these three plots on a single page and label them
> A, B, and C.
>
> In general, do you use R directly for these tasks, or do you use an
> image editor? If you use an editor, which one do you use?
> I'm working on Windows. Thanks for your time.
>
> Regards,
>
> Juliet
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
http://had.co.nz/