Wow. I understand, thanks.

m
 
Mihai Nica
170 East Griffith St. G5
Jackson, MS 39201
601-914-0361

----- Original Message ----
From: hadley wickham <[EMAIL PROTECTED]>
To: Mihai Nica <[EMAIL PROTECTED]>
Cc: R list <[email protected]>
Sent: Sunday, March 25, 2007 7:53:14 AM
Subject: Re: [R] plot of computed vector

> I apologize for the non-programming language. I found what seems to be a
> strange behavior of plot(). The code follows:
>
> #_____________________________
> N=3030; gn=.04; tn=1:100
> n=N/(1+(N-1)*exp(-gn*tn))
> N=n*(1-exp(-gn*tn))/(1-n*exp(-gn*tn))
> plot(N) #strange plot
>
> N

Have a look at diff(N) to see what's going on.

The default axis labels and printing display too few decimal places to
see the differences between the numbers.

Hadley

______________________________________________
[email protected] 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.







 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 


        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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