[R] A question on plot

2006-03-11 Thread Albert Sorribas
I’m trying to obtain a plot of given function, say the density of a normal, in which I could indicate the area under the curve between two points (a,b). I.e. the P(aXb). Could anyone indicate me which is the instruction for obtain such a shadow area under a curve? I guess the solution is not

Re: [R] A question on plot

2006-03-11 Thread Gabor Grothendieck
Try RSiteSearch(shade area under curve) On 3/11/06, Albert Sorribas [EMAIL PROTECTED] wrote: I'm trying to obtain a plot of given function, say the density of a normal, in which I could indicate the area under the curve between two points (a,b). I.e. the P(aXb). Could anyone indicate me

R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem in pasting commands

2004-11-23 Thread giovanna jona lasinio
I'm using R since version 1.6, and I didn't redefine plot in my workspace (I would never even dream of doing anything like that), I didn't change any R-environment variable or option in the last 4 month. In my example x is a vector of 30 real values ... I installed the windows service pack2

Re: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem in pasting commands

2004-11-23 Thread Uwe Ligges
giovanna jona lasinio wrote: I'm using R since version 1.6, and I didn't redefine plot in my workspace (I would never even dream of doing anything like that), I didn't change any R-environment variable or option in the last 4 month. In my example x is a vector of 30 real values ... I installed

R: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem in pasting commands

2004-11-23 Thread giovanna jona lasinio
PROTECTED] Inviato: martedì, 23. novembre 2004 10:20 A: giovanna jona lasinio Cc: [EMAIL PROTECTED] Oggetto: Re: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem in pasting commands giovanna jona lasinio wrote: I'm using R

Re: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem i

2004-11-23 Thread Petr Pikal
Hi Giovanna I have encountered such problem some time ago (so it had to be R 1.8-1.9 approximately). It was connected with some complicated plot statements and usually also with **non english** characters in annotation texts. I did not found any traceable or repeatable pattern and sometime it

R: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem i

2004-11-23 Thread giovanna jona lasinio
jona lasinio; [EMAIL PROTECTED]; [EMAIL PROTECTED] math.ethz.ch Oggetto: Re: R: a question on plot(), workspace or method dispatch, NOT about: Re: [R] RWinEdt, other text editors and R2.01 a problem i Hi Giovanna I have encountered such problem some time ago (so it had to be R 1.8-1.9

[R] R[Mailman] question: contour plot for discrete data

2003-12-23 Thread Dieter Menne
You wrote: --- I have matrix (n x3) that represents discrete data. Each row of matrix is 3-D point (x,y,z). I would like to get contour map (z value) at two dimension (x,y). How can I use related contour function to do this job? --- Paul Murrell ([EMAIL PROTECTED]) sent me his little clines

Re: [R] [Mailman] question: contour plot for discrete data

2003-12-22 Thread Petr Pikal
Hi library(akima) function contour(interp(x,y,z)) is one possibility Cheers Petr On 19 Jan 2058 at 48:211, L Z wrote: Question: I have matrix (n x3) that represents discrete data. Each row of matrix is 3-D point (x,y,z). I would like to get contour map (z value) at two dimension (x,y).

Re: [R] [Mailman] question: contour plot for discrete data

2003-12-21 Thread Thomas W Blackwell
Dear L Z - Before using contour() one needs to interpolate the z values to all points in a rectangular grid. 2D interpolation is not trivial. The package KernSmooth (case-sensitive) will do this for a density estimate but not, apparently, when z values are given. Perhaps packages splines or

Re: [R] [Mailman] question: contour plot for discrete data

2003-12-21 Thread Spencer Graves
Have you considered interp, as in the following example: XY - expand.grid(x=1:11, y=1:11) XY$z - XY$x+XY$y contour(interp(XY$x, XY$y, XY$z)) hope this helps. spencer graves Thomas W Blackwell wrote: Dear L Z - Before using contour() one needs to interpolate the z values to all points in a

[R] [Mailman] question: contour plot for discrete data

2003-12-19 Thread L Z
Question: I have matrix (n x3) that represents discrete data. Each row of matrix is 3-D point (x,y,z). I would like to get contour map (z value) at two dimension (x,y). How can I use related contour function to do this job? I am not sure if I clarify this question. For example, we can get point