[R] Plotting one dot in a graph

TGS cran.questions at gmail.com
Thu Aug 12 21:43:30 CEST 2010


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)



More information about the R-help mailing list