I need to make histograms with the breaks with my size classes, which are:
1:1.2, 1.2:1.4, 1.4:1.6, 1.6:1.8, 1.8:2, 2:2.2, 2.2:2.4, etc
and their respective frequencies are:
4, 20, 52, 142, 205, 307, 445
I'm using the following code:
op <- par(mfrow = c(1, 2))
hist1 <- hist(log(Huentelauquen$Age[Huentelauquen$Regime==unique(Huentelauquen$Regime)[1]]),breaks=5,main=unique(Huentelauquen$Regime)[1],xlab="log(Age)")
hist2 <- hist(log(Huentelauquen$Age[Huentelauquen$Regime==unique(Huentelauquen$Regime)[2]]),breaks=5,main=unique(Huentelauquen$Regime)[2],xlab="log(Age)")
It works like this but as I said I need the breaks with the size classes! Thanks in advance