-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm a new user of R and have managed to make a plot of a histogram. Is there any way I set the title and axes labels and then save the plot as an image (png/gif)? Thanks - -- - ------------------------------------------------------------------- Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE - ------------------------------------------------------------------- "A fractal is by definition a set for which the Hausdorff Besicovitch dimension strictly exceeds the topological dimension." -- Mandelbrot, "The Fractal Geometry of Nature" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+Y4raG7nmNJuHVu4RAv3WAKCaQO9X0ZwQwzjDlwXQ4BbKdYuH6gCeN+vD XpeosRY4Wk+u7L/X5eBMXT4=VeJL -----END PGP SIGNATURE-----
Rajarshi Guha wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > I'm a new user of R and have managed to make a plot of a histogram. Is there > any way I set the title and axes labels and then save the plot as an image > (png/gif)?This is a joke, isn't it? What about a) reading the manual "An Introduction to R" (in particular its Section 12: Graphical Procedures), b) reading the help pages for functions you are using, c) using the help facilities to find functions you want to use, d) looking for previous relevant messages in the R help archives, e) looking into any other documentation or good book related to R. Each one of the above mentioned methods helps! Or for short: RTFM! An annoyed voluntary help provider, Uwe Ligges> Thanks > - -- > - ------------------------------------------------------------------- > Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> > GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE > - -------------------------------------------------------------------
Hi, ----- Original Message ----- From: "Rajarshi Guha" <rajarshi at presidency.com> To: <r-help at stat.math.ethz.ch> Sent: Tuesday, March 04, 2003 6:03 AM Subject: [R] saving a plot to a file> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > I'm a new user of R and have managed to make a plot of a histogram. Isthere> any way I set the title and axes labels and then save the plot as an image > (png/gif)?To set the title/axis labels, one of the options is to use the main, xlab, ylab parameters in hist(). For example: > hist(1:10, main = "A Histogram", xlab = "FOO", ylab = "Fred") As for save the plot, take a look at: > ?png Cheers, Kevin ------------------------------------------------ Ko-Kang Kevin Wang Master of Science (MSc) Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022