I want to make a histogram of counts of some individuals but divided by 11 lenght classes. The classes are: ]50,100 mm[; ]100-150 mm]; ]150-200 mm]; ]200-250 mm]; ]250-300 mm]; ]300-350 mm]; ]350-400 mm]; ]400-450 mm]; ]450-500 mm]; ]500-550 mm]; > 550 mm. My main problem is, how can I group the individuals that are greather than 550mm in one bin?
Currently my script is:
ggplot(LWR, aes(x=TL, fill=Period)) +
geom_histogram( color="#e9ecef", alpha=0.6, position = 'dodge',boundary= 50, binwidth=50,closed="left") +
scale_fill_manual(values=c("#69b3a2", "#404080")) +
scale_y_continuous(name="Number of eels", breaks=seq(0, 400, by=50),
limits = c(0, 400),expand=expansion(mult=c(0,0.05))) +
scale_x_continuous(name="Total length (mm)",breaks=seq(50, 550, by=50),
limits = c(50, 550))
and I get this histogram
Did the values greather than 550mm disappeared or are in the last bin?