[R] plot

R. Michael Weylandt michael.weylandt at gmail.com
Mon Apr 1 18:26:13 CEST 2013


On Mon, Apr 1, 2013 at 5:05 PM, Trying To learn again
<tryingtolearnagain at 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.

E.g.,

jpeg()
plot(1:5)
dev.off()

Read ?jpeg for more details.

MW


>
> Thanks in advance.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.



More information about the R-help mailing list