2008/8/27 Nicky Chorley <[EMAIL PROTECTED]>: > 2008/8/27 rr400 <[EMAIL PROTECTED]>: >> >> 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). >
For more information about plot, see the "man" page: ? plot > Regards, > > Nicky Chorley > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.