[R] Cure and data type
Jim Lemon
jim at bitwrit.com.au
Wed May 14 23:01:31 CEST 2014
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
More information about the R-help
mailing list