Re: [R] plots

2007-07-25 Thread Vladimir Eremeev
amna khan wrote: I did not find any function of graph which plot one variable on x-axis and 2 or more than 2 variables on y-axis. You can use xyplot() from the package lattice. library(lattice) xyplot(y1+y2+y3~x) I suspect, the problem is, that plot() erases everything that was plotted

Re: [R] plots

2007-07-25 Thread John Kane
--- amna khan [EMAIL PROTECTED] wrote: Hi Sir I did not find any function of graph which plot one variable on x-axis and 2 or more than 2 variables on y-axis. I think ?points or ?lines may be what you want. Moreover, how can I change the labels of L-moments diagram obtained by

Re: [R] Plots from categorial data

2007-07-01 Thread hadley wickham
Perhaps this will do what you want: library(ggplot2) qplot(filter_setting, avg.hit, data=data, colour=ocrtool, geom=line) find out more about ggplot2 at http://had.co.nz/ggplot2 Hadley On 7/1/07, Christoph Krammer [EMAIL PROTECTED] wrote: Hello everybody, Since my first message was caught

Re: [R] Plots from categorial data

2007-07-01 Thread Jim Lemon
Christoph Krammer wrote: Hello everybody, Since my first message was caught by the spam filter, I just try to do it again: I want to use R to generate plots from categorial data. The data contains results from OCR scans over images with are preprocessed by different image filtering

Re: [R] Plots from categorial data

2007-07-01 Thread Christoph Krammer
in the filtersetting column as categories? Thanks and regards, Christoph -Ursprüngliche Nachricht- Von: hadley wickham [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. Juli 2007 12:21 An: Christoph Krammer Cc: r-help@stat.math.ethz.ch Betreff: Re: [R] Plots from categorial data Perhaps this will do

Re: [R] Plots from categorial data

2007-07-01 Thread hadley wickham
On 7/1/07, Christoph Krammer [EMAIL PROTECTED] wrote: Hello Hadley, Thanks a lot for your help. I got the plot I want out of this module with a slightly more complicated command. But now, I have an additional problem: In the given case, the filtersetting column contains letters, so R takes

Re: [R] Plots from categorial data

2007-07-01 Thread deepayan . sarkar
On 7/1/07, Jim Lemon [EMAIL PROTECTED] wrote: Christoph Krammer wrote: Hello everybody, Since my first message was caught by the spam filter, I just try to do it again: I want to use R to generate plots from categorial data. The data contains results from OCR scans over images with

Re: [R] plots - scatterplots - find index of a point in a list

2007-05-08 Thread John Kane
Try ?locator --- [EMAIL PROTECTED] wrote: Hi, is it possible to find the index of a point of a plot (e.g. scatterplot) in an easy way? Eg. x - c(1:5); y - c(1:5); plot(x, y); On the plot if I move my cursor on top of a point or click on it is it possible to have its index printed

Re: [R] plots - scatterplots - find index of a point in a list

2007-05-08 Thread gatemaze
On 08/05/07, John Kane [EMAIL PROTECTED] wrote: Try ?locator Thanks. Your tip also lead to another function: ?identify to add my two cents. --- [EMAIL PROTECTED] wrote: Hi, is it possible to find the index of a point of a plot (e.g. scatterplot) in an easy way? Eg. x -

Re: [R] plots: layout + subtitles

2006-10-16 Thread Paul Murrell
Hi Marie-Pierre Sylvestre wrote: Hello, I want to create a figure that consists of a collection of 16 graphs on 4 rows. I am using nf - layout(matrix(seq(1,16), 4,4, byrow=TRUE), respect=TRUE) boxplot(... to create the layout of my 16 graphs. It works really well. However, I'd

Re: [R] Plots Without Displaying

2006-08-17 Thread Lothar Botelho-Machado
Park Suite 5350 Woburn, MA 01801 Tel: 781-938-3830 www.nuverabio.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lothar Botelho-Machado Sent: Wednesday, August 16, 2006 4:49 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Plots

Re: [R] Plots Without Displaying

2006-08-17 Thread Gabor Grothendieck
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lothar Botelho-Machado Sent: Wednesday, August 16, 2006 4:49 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Plots Without Displaying Prof Brian Ripley wrote: Yes, see ?jpeg ?bitmap and as you didn't tell us your OS we

Re: [R] Plots Without Displaying

2006-08-17 Thread Prof Brian Ripley
:[EMAIL PROTECTED] On Behalf Of Lothar Botelho-Machado Sent: Wednesday, August 16, 2006 4:49 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Plots Without Displaying Prof Brian Ripley wrote: Yes, see ?jpeg ?bitmap and as you didn't tell us your OS we don't know

Re: [R] Plots Without Displaying

2006-08-17 Thread hadley wickham
Yes, you can do that for lattice-based plots. The functions in the lattice package produce objects of class trellis which can be stored in a list and processed or updated at a later time: Or for ggplot based plots: install.packages(ggplot) library(ggplot) plotList - list(length=3)

Re: [R] Plots Without Displaying

2006-08-16 Thread Prof Brian Ripley
Yes, see ?jpeg ?bitmap and as you didn't tell us your OS we don't know if these are available to you. jpeg(file=test.jpg) boxplot(sample(100)) dev.off() may well work. 'An Introduction to R' explains about graphics devices, including these. On Wed, 16 Aug 2006, Lothar Botelho-Machado

Re: [R] Plots Without Displaying

2006-08-16 Thread Lothar Botelho-Machado
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prof Brian Ripley wrote: Yes, see ?jpeg ?bitmap and as you didn't tell us your OS we don't know if these are available to you. jpeg(file=test.jpg) boxplot(sample(100)) dev.off() may well work. 'An Introduction to R' explains about

Re: [R] Plots Without Displaying

2006-08-16 Thread Christos Hatzis
@stat.math.ethz.ch Subject: Re: [R] Plots Without Displaying -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prof Brian Ripley wrote: Yes, see ?jpeg ?bitmap and as you didn't tell us your OS we don't know if these are available to you. jpeg(file=test.jpg) boxplot(sample(100)) dev.off() may well

Re: [R] Plots

2006-08-07 Thread Gabor Grothendieck
Try: RSiteSearch(Horses and Hounds) On 8/7/06, Sonal Darbari [EMAIL PROTECTED] wrote: Hi, What commands are needed to get an output like this: 1. On X-Axis : 2 Indices ex. SP500 and DOW JONES 2. Their repective dates If I use the plot command, I get one output if I use it again, I

Re: [R] Plots

2006-08-07 Thread Gabor Grothendieck
Also RSiteSearch(ts.plot.2Axis) On 8/7/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try: RSiteSearch(Horses and Hounds) On 8/7/06, Sonal Darbari [EMAIL PROTECTED] wrote: Hi, What commands are needed to get an output like this: 1. On X-Axis : 2 Indices ex. SP500 and DOW

Re: [R] plots - paper vs presentation colors

2006-03-05 Thread Uwe Ligges
Darren Weber wrote: Hi, I can't find a simple command to switch the plot colors from paper to presentation formats. Has anyone defined styles that can be easily applied in one command? It would be nice to have a command for papers, using ps or eps outputs, that has a white background

Re: [R] plots - paper vs presentation colors

2006-03-04 Thread Deepayan Sarkar
On 3/4/06, Darren Weber [EMAIL PROTECTED] wrote: Hi, I can't find a simple command to switch the plot colors from paper to presentation formats. Has anyone defined styles that can be easily applied in one command? It would be nice to have a command for papers, using ps or eps outputs, that

Re: [R] Plots: displaying mathematical symbols in specific fonts

2006-02-20 Thread Prof Brian Ripley
On Mon, 20 Feb 2006, Ed Merkle wrote: Dear SavioRs, I am doing some research where characters in different microsoft fonts serve as experimental stimuli. Hence, in plot labels, I would like to display the characters in specific microsoft fonts. I have figured out how to display letters

Re: [R] plots

2006-02-11 Thread Romain Francois
Le 11.02.2006 19:44, [EMAIL PROTECTED] a écrit : Hi all, I have a basic question. how can i visualize two or more density curves on the same plot? ex: x1-runif(100,10,80) x2-runif(100,1,100) kernelgraf-density(x1,kernel = gaussian, width= 20) plot(kernelgraf, xlab=Probability,

Re: [R] plots

2006-02-11 Thread Charles Annis, P.E.
You could substitute lines(kernelgraf) for your last line: points(kernelgraf, xlab=Probability, xlim=c(0,100), ylim=c(0,.1), col=rgb(0,0,1), main=) See ?lines Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] plots

2006-02-11 Thread Duncan Murdoch
Romain Francois wrote: Le 11.02.2006 19:44, [EMAIL PROTECTED] a écrit : Hi all, I have a basic question. how can i visualize two or more density curves on the same plot? ex: x1-runif(100,10,80) x2-runif(100,1,100) kernelgraf-density(x1,kernel = gaussian, width= 20) plot(kernelgraf,

Re: [R] plots

2006-02-11 Thread Romain Francois
Le 11.02.2006 19:59, Duncan Murdoch a écrit : Romain Francois wrote: Le 11.02.2006 19:44, [EMAIL PROTECTED] a écrit : Hi all, I have a basic question. how can i visualize two or more density curves on the same plot? ex: x1-runif(100,10,80) x2-runif(100,1,100)

Re: [R] plots

2005-06-15 Thread Uwe Ligges
secretario academico FACEA wrote: Dear all, Is it possible to change the levels in a mosaic plot, Change the levels? This depends on the data, not on the plot function, I think... the appearance of the level What does apprearance mean? See ?mosaicplot which tells you how to re-order

Re: [R] plots from batchfile on windows

2005-06-03 Thread Gabor Grothendieck
On 6/3/05, Hans-Peter [EMAIL PROTECTED] wrote: Hi, On windows I'd like to run a batchfile that leaves me a plot. As a test I have the scriptfile test.r which only contains: x - 1:10; y - sample( 10 ) plot( x, y ) Now I tried the following (but nothing worked): a) R

Re: [R] plots from batchfile on windows

2005-06-03 Thread Hans-Peter
On 6/3/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: This was discussed previously this week. Look right at the end of: https://www.stat.math.ethz.ch/pipermail/r-help/2005-June/071147.html I had to add a win.graph... command, now it works: x - 1:10; y - sample( 10 )

RE: [R] plots from batchfile on windows

2005-06-03 Thread BXC (Bendix Carstensen)
: [R] plots from batchfile on windows On 6/3/05, Hans-Peter [EMAIL PROTECTED] wrote: Hi, On windows I'd like to run a batchfile that leaves me a plot. As a test I have the scriptfile test.r which only contains: x - 1:10; y - sample( 10 ) plot( x, y ) Now I tried

Re: [R] Plots with same x-axes

2005-01-20 Thread Marc Schwartz
On Fri, 2005-01-21 at 01:48 +0100, Robin Gruna wrote: Hi, I want to plot two graphics on top of each other with layout(), a scatterplot and a barplot. The problems are the different x-axes ratios of the plots. How can I align the two x-axes? Thank you very much, Robin Robin, Here is an

Re: [R] plots

2004-12-28 Thread Tim F Liao
You can copy (right click then choose metafile) and paste into Word easily, though sometimes you may have problem sizing the graph, depending on how it's produced. However, single framed graphs work quite straightforwardly. Tim Liao Original message Date: Mon, 27 Dec 2004 17:00:19

RE: [R] plots

2004-12-27 Thread Charles Annis, P.E.
Yes. Assuming you are using R in Windows, right click on the plot, and choose Save as metafile, or more expeditiously, Copy as metafile, and then paste directly into your WORD document. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265

RE: [R] plots

2004-12-27 Thread BXC (Bendix Carstensen)
For exact contol of height and width, you may want to have a look at: ?win.metafile Bendix Carstensen -- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06

Re: [R] Plots default to Rplots.ps

2003-08-20 Thread Martyn Plummer
On Wed, 2003-08-20 at 09:22, Simon Woodhead wrote: Dear All, Hello I'm a newbie to the list. I recently installed R on a Redhat 9.0 system, when I come to plot anything it does not bring up a graphics window but rather stores it in a file Rplots.ps. I tried x11() but that doesn't bring

Re: [R] Plots default to Rplots.ps

2003-08-20 Thread Simon Woodhead
Martyn Plummer wrote: It looks like you have compiled R without support for X11, so the default plotting device is postscript(). You need to install the XFree86-devel package and recompile, or else use the ready made RPM packages on CRAN: http://cran.r-project.org/bin/linux/redhat/9/i386/ Martyn

Re: [R] Plots using POSIX

2003-06-26 Thread Prof Brian Ripley
On Thu, 26 Jun 2003, Shawn Way wrote: Is there a reason that the bottom axis changes color when POSIX data is used in plot function? It's not the same plot function, that's why. For example: timedata - c(2/3/2003,3/4/2003,5/4/2003) timedata2 - strptime(timedata,format=%m/%d/%Y)

Re: [R] Plots using POSIX

2003-06-26 Thread Duncan Murdoch
On Thu, 26 Jun 2003 07:59:00 -0500, Shawn Way [EMAIL PROTECTED] wrote : Is there a reason that the bottom axis changes color when POSIX data is used in plot function? It's the old problem of too much of ... being passed onwards. Here's the current definition: plot.POSIXct - function (x, y,

Re: [R] Plots using POSIX

2003-06-26 Thread Prof Brian Ripley
On Thu, 26 Jun 2003, Duncan Murdoch wrote: On Thu, 26 Jun 2003 07:59:00 -0500, Shawn Way [EMAIL PROTECTED] wrote : Is there a reason that the bottom axis changes color when POSIX data is used in plot function? It's the old problem of too much of ... being passed onwards. Here's the