I am a beginner to R, and am working on exporting graphs. Even when I reduce the quality, it takes 30 or 40 minutes to export the graph. Does anyone have suggestions on how to make it faster? Thank you! Karthik
Hi Karthik, Please give a sample code of what it is that you are doing that is causing this. Also, have a look at: ?pdf Or ?png Cheers, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Sun, Feb 21, 2010 at 9:27 PM, Karthik <kwr500@gmail.com> wrote:> I am a beginner to R, and am working on exporting graphs. Even when I > reduce the quality, it takes 30 or 40 minutes to export the graph. > Does anyone have suggestions on how to make it faster? > > Thank you! > Karthik > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
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 On Sun, Feb 21, 2010 at 11:32 AM, Tal Galili <tal.galili at gmail.com> wrote:> > Hi?Karthik, > Please give a sample code of what it is that you are doing that is causing this. > Also, have a look at: > ?pdf > Or > ?png > > Cheers, > Tal > > ----------------Contact Details:------------------------------------------------------- > Contact me: Tal.Galili at gmail.com | ?972-52-7275845 > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) > ---------------------------------------------------------------------------------------------- > > > > > On Sun, Feb 21, 2010 at 9:27 PM, Karthik <kwr500 at gmail.com> wrote: >> >> I am a beginner to R, and am working on exporting graphs. Even when I >> reduce the quality, it takes 30 or 40 minutes to export the graph. >> Does anyone have suggestions on how to make it faster? >> >> Thank you! >> Karthik >> >> ______________________________________________ >> 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. >
Hi Karthik,
I think you will need to do something like
jpeg("histograms.jpg")
hist(rnorm(100))
dev.off()
HTH
Stephan
Karthik schrieb:> 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
>
> On Sun, Feb 21, 2010 at 11:32 AM, Tal Galili <tal.galili at
gmail.com> wrote:
>> Hi Karthik,
>> Please give a sample code of what it is that you are doing that is
causing this.
>> Also, have a look at:
>> ?pdf
>> Or
>> ?png
>>
>> Cheers,
>> Tal
>>
>> ----------------Contact
Details:-------------------------------------------------------
>> Contact me: Tal.Galili at gmail.com | 972-52-7275845
>> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew)
| www.r-statistics.com (English)
>>
----------------------------------------------------------------------------------------------
>>
>>
>>
>>
>> On Sun, Feb 21, 2010 at 9:27 PM, Karthik <kwr500 at gmail.com>
wrote:
>>> I am a beginner to R, and am working on exporting graphs. Even when
I
>>> reduce the quality, it takes 30 or 40 minutes to export the graph.
>>> Does anyone have suggestions on how to make it faster?
>>>
>>> Thank you!
>>> Karthik
>>>
>>> ______________________________________________
>>> 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.
>