Message-ID: <7A3D2572-423F-4FD5-9721-18CC4CA2B776@comcast.net>
Date: 2011-01-14T04:43:48Z
From: David Winsemius
Subject: bug in qplot (library ggplot2)
In-Reply-To: <4D2FA40E.70505@chasset.net>
On Jan 13, 2011, at 8:17 PM, Pierre-Olivier Chasset wrote:
> Hello,
>
> this following code give a nice png:
>
> /library(ggplot2)
> i <- 1
> png(file=paste('test ',i,'.png',sep=''))
> qplot(carat, data=diamonds,
> fill=color,geom='histogram')+scale_y_continuous(i)
> dev.off()
> /
> I would like to get more files, but the following code doesn't make
> any
> file:
>
> /library(ggplot2)
> for (i in 1:2) {
> png(file=paste('test ',i,'.png',sep=''))
> qplot(carat, data=diamonds,
> fill=color,geom='histogram')+scale_y_continuous(i)
> dev.off()
Read the FAQs.
> }
> /
> Have you got any idea?
> Have I made something false?
>
> Thanks,
>
> Pierre-Olivier
>
David Winsemius, MD
West Hartford, CT