On Wed, 14 May 2014 11:33:30 AM Ragia Ibrahim wrote: > Hi, > I have a simple table of age and frequency > What data type should I use to represent this kind of data in R, and kindly > how can I plot it in a curve thanks in advance > RAE > Hi RAE, Here is one way:
agetable<-table(sample(0:100,1000,TRUE)) plot(agetable,main="Frequency plot") plot(supsmu(0:100,agetable),type="l", main="Smoothed frequency plot") Jim ______________________________________________ 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.