[R] Exporting Graphs
Karthik
kwr500 at gmail.com
Sun Feb 21 21:07:12 CET 2010
Thank you everyone. Your advice helped. Right now I am working through
Introductory Statistics with R (Dalgaard) and will also take a look at
the R Manual.
--Karthik
[:-)]+|=0=''
On Sun, Feb 21, 2010 at 12:01 PM, Sharpie <chuck at sharpsteen.net> wrote:
>
>
> Karthik wrote:
>>
>> Hello Tal,
>> This is the code.
>>
>> ------------------------
>>> hist(rnorm(100))
>>> jpeg("histogram.jpeg")
>> -----------------------
>>
>> Even when I decrease the quality, I still have the same problem.
>>
>> ----------------------------
>>> hist(rnorm(100))
>>> jpeg("histogram.jpeg",quality=30)
>> ----------------------------
>>
>> Thank you for taking a look.
>> Karthik
>>
>
> Hi Karthic,
>
> You have things a little mixed around there-- use plotting commands after
> you open an output device. Like so:
>
> jpeg( "histogram.jpeg" )
> hist( rnorm(100) )
>
> And when you're done, don't forget to call dev.off(). As you mentioned that
> you are a beginner, I would strongly suggest flipping through the
> "Introduction to R" manual. A copy can be accessed online at:
>
> http://cran.r-project.org/doc/manuals/R-intro.html
>
> Section 12 provides a good overview of graphics in R.
>
> Good luck!
>
> -Charlie
> --
> View this message in context: http://n4.nabble.com/Exporting-Graphs-tp1563718p1563753.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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