BTW - if you are using an image with little color (but many lines),
I remember reading that png is better to use then jpeg.

Tal

----------------Contact
Details:-------------------------------------------------------
Contact me: tal.gal...@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 10:07 PM, Karthik <kwr...@gmail.com> wrote:

> 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 <ch...@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@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@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]]

______________________________________________
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