search for: 326998

Displaying 1 result from an estimated 1 matches for "326998".

Did you mean: 32699
2010 Dec 07
1
Plotting own function
Hello, I have a simple question but didn't find a solution. How do I plot a custom function. I have defined this function func <- function(x) { y <- exp(-0.5*((x-63.9)/23.2)^2) if(x > 63.9) return(2 - y) else { return(y) } } and want to plot it in a specified range like x = seq(-10,150,length=500) y <- func(x) plot(x,y,type="l",lwd=2,col="red") But