Yes, I'm playing around with other things but the "points()" function is what I 
was looking for. Thanks

On Aug 12, 2010, at 12:47 PM, David Winsemius wrote:


On Aug 12, 2010, at 3:43 PM, TGS wrote:

> I'd like to plot a point at the intersection of these two curves. Thanks
> 
> x <- seq(.2, .3, by = .01)
> f <- function(x){
>       x*cos(x)-2*x**2+3*x-1
> }
> 
> plot(x,f(x), type = "l")
> abline(h = 0)

Would this just be the uniroot strategy applied to "f"? You then plot the x and 
y values with points()

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org 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