[R] Fitting this data with a gaussian would be great

2013-02-22 Thread Samantha Warnes
Hello,I'm still working with this data set, and trying to fit it with a nonlinear model. Here is my data > small <- > c(507680,507670,508832,510184,511272,513380,515828,519160,525046,534046,547982,567124,590208,614506,637876,656846,669054,672976,668800,656070,637136,614342,590970,570752,554480,54

[R] Fitting a gaussian distribution to a plot

2013-02-20 Thread Samantha Warnes
I have a peak I would like to fit with a gaussian distribution, and am having difficulties. First of all I am having difficulties getting R to except my function input, and additionally I am having trouble plotting the non linear model on my scatterplot of data (the peak). Here is my log: > sma