[R] save plot

Alain Guillet alain.guillet at uclouvain.be
Wed Aug 4 14:33:02 CEST 2010


  ?jpeg

On 04-Aug-10 14:28, linda.s wrote:
> Can I make a group of jpeg instead of pdfs?
> Thanks.
> Linda
>
> On Wed, Aug 4, 2010 at 6:47 AM, John Kane<jrkrideau at yahoo.ca>  wrote:
>> Yes,  ?jpeg
>>
>> --- On Tue, 8/3/10, linda.s<samrobertsmith at gmail.com>  wrote:
>>
>>> From: linda.s<samrobertsmith at gmail.com>
>>> Subject: Re: [R] save plot
>>> To: gavin.simpson at ucl.ac.uk
>>> Cc: r-help at r-project.org
>>> Received: Tuesday, August 3, 2010, 5:36 PM
>>>> [I presume you addressed this to
>>> Duncan Murdoch for a good reason???]
>>>> Open a new device before plotting, do your plotting,
>>> close the device.
>>>> For example, using a PDF device via pdf():
>>>>
>>>> pdf("my_plots.pdf", height = 8, width = 8, pointsize =
>>> 10,
>>>>     version = "1.4", onefile = TRUE)
>>>> for(i in 1:10) {
>>>>     y<- rnorm(100)
>>>>     x<- rnorm(100)
>>>>     plot(y ~ x)
>>>> }
>>>> dev.off()
>>> Can I make a group of jpg instead of pdfs?
>>> Thanks.
>>> Linda
>>>
>>> ______________________________________________
>>> 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.
>>>
>>
>>
> ______________________________________________
> 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.
>

-- 
Alain Guillet
Statistician and Computer Scientist

SMCS - IMMAQ - Université catholique de Louvain
Bureau c.316
Voie du Roman Pays, 20
B-1348 Louvain-la-Neuve
Belgium

tel: +32 10 47 30 50



More information about the R-help mailing list