[R] Newbie question: histogram

Philippe de Rochambeau philippe at wwphi.net
Wed Feb 4 12:41:08 CET 2004


Hello,

how do you create a histogram with a data frame?

year snow.cover
1970 6.5
1971 12.0
1972 14.9
1973 10.0
1974 10.7
1975 7.9
...

mydata=data.frame(year=c(1970,...),snow.cover=c(6.5,...))

hist(mydata) does not work.

Many thanks.

PR




More information about the R-help mailing list