Re: [R] Plotting several functions in the same display (again)

2013-04-04 Thread Julio Sergio
Duncan Murdoch gmail.com> writes: > The curve() function is trying to be clever, but it's not. You can > probably get what you want using curve(fi(380)(x), add=TRUE). It treats > the "x" argument specially. > > Duncan Murdoch > Thanks Duncan, Your solution worked perfectly! _

Re: [R] Plotting several functions in the same display (again)

2013-04-04 Thread Duncan Murdoch
On 04/04/2013 11:38 AM, Julio Sergio wrote: To superimpose two functions plots in the same page. The functions L0 and L1, as defined below, I use the following code: # An accumulative normal distribution function with # several parametres f0 <- function(mu, xm, ds, n) { 1 - pnorm((

[R] Plotting several functions in the same display (again)

2013-04-04 Thread Julio Sergio
To superimpose two functions plots in the same page. The functions L0 and L1, as defined below, I use the following code: # An accumulative normal distribution function with # several parametres f0 <- function(mu, xm, ds, n) { 1 - pnorm((xm-mu)/(ds/sqrt(n))) } f1 <- function(mu,