Skip to content
Prev 177456 / 398503 Next

Create histogram from data matrix

Looks to me that Holtman's solution was perfect:

 > fdf <- read.table(textConnection(txt), header=T)
 > fdf
         IDdt Temp N.fish
1  200706183    5    456
2  200706183    5    765
3  200706183    4    567
4  200706183    3    876
5  200706183    3    888
6  200706183    2    111
7  200706184    8   2345
8  200706184    8    654
9  200706184    8   7786
10 200706184    7    345
11 200706184    6    234
12 200706184    6    123
 > with(fdf, hist(rep(Temp, N.fish))  )

--  
David Winsemius
On Apr 17, 2009, at 3:07 PM, Paul Warren Simonin wrote:

            
David Winsemius, MD
Heritage Laboratories
West Hartford, CT