[R] Plotting one dot in a graph
TGS
cran.questions at gmail.com
Thu Aug 12 21:49:21 CEST 2010
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
More information about the R-help
mailing list