- Good for summarizing continuous data where you want to break it into discrete classes
- What do these two sets of commands do?
par(mfrow = c(2, 1)) # make two plotting windows
hist(metadata$Weight[metadata$Sex == "F"])
hist(metadata$Weight[metadata$Sex == "M"])
par(mfrow = c(1, 1)) # return to one plotting window
par(mfrow = c(2, 1))
hist(metadata$Weight[metadata$Sex == "F"], breaks = 10, ylim = c(0, 20), xlim = c(0,
30))
hist(metadata$Weight[metadata$Sex == "M"], breaks = 10, ylim = c(0, 20), xlim = c(0,
30), add = T)
par(mfrow = c(1, 1))