Hi, i have never really used R before and i need to produce a density curve for use in an assignment. Following the instructions in the manual provided with my course i keep getting this error message: "Error in plot.xy(xy, type, ...) : invalid plot type '1'" The commands i have entered are:>x=seq(0, 1800, 10) >x >f=dnorm(x, 1454.190, 162.6301) >f >plot(x,f,type='1')Any help would be greatly appreciated. Thanks -- View this message in context: http://www.nabble.com/Error-producing-density-curve-tp19173403p19173403.html Sent from the R help mailing list archive at Nabble.com.
2008/8/27 rr400 <raul.felipe.ramirez at gmail.com>:> > Hi, i have never really used R before and i need to produce a density curve > for use in an assignment. Following the instructions in the manual provided > with my course i keep getting this error message: > "Error in plot.xy(xy, type, ...) : invalid plot type '1'" > > The commands i have entered are: >>x=seq(0, 1800, 10) >>x >>f=dnorm(x, 1454.190, 162.6301) >>f >>plot(x,f,type='1')It's probably a lowercase L, not a 1 (to plot lines rather than points). Regards, Nicky Chorley
This was exactly the problem. It has worked a treat this time around. Thank you so much! -- View this message in context: http://www.nabble.com/Error-producing-density-curve-tp19173403p19176280.html Sent from the R help mailing list archive at Nabble.com.