Hi Many Thanks to all.

 dev.print(jpeg, file="test.jpeg", height=800,width=800)

Works perfectly it saves in the default directory the jpeg file.

I use RStudio.

Many Thanks.


2013/4/1 David Winsemius <dwinsem...@comcast.net>

>
> On Apr 1, 2013, at 9:26 AM, R. Michael Weylandt wrote:
>
> > On Mon, Apr 1, 2013 at 5:05 PM, Trying To learn again
> > <tryingtolearnag...@gmail.com> wrote:
> >> Hi all if I plot a graph on R, I press on the plot Export/Save Plot as
> >> Image....
> >
> > I assume this means you're using R-Studio?
> >
> >>
> >> I change name on "File name:"
> >>
> >> I select Directory....Bibliotecas\Documentos
> >>
> >> And select Width 800 and Height 800
> >>
> >> And finally save in format JPEG
> >>
> >> It is posible to "type" code so that I can run my function and it is not
> >> necessary to make it manually?
> >
> > Yes -- in fact that's the way you're "supposed" to do it and the
> > RStudio way you mentioned above is a shortcut.
>
> You might also try this if you have already tested your graphic
> instructions on an interactive device and want to see if you can save it to
> a different file device:
>
>  dev.print(jpeg, file="test.jpeg", height=800,width=800)
>
> >
> > E.g.,
> >
> > jpeg()
> > plot(1:5)
> > dev.off()
> >
> > Read ?jpeg for more details.
> >
> >
>
>
> David Winsemius
> Alameda, CA, USA
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to