Having trouble rearranging levels

image
ggplot2 graph

I would like to make it so the levels in the factor "Age", are in order. Originally they are in the order, Mature, Old, Young. I attempted to rectify this by using "dat$Age <- relevel(dat$Age, ref = "Young")" But this did not seem to fully work as in the graph you can see two keys with only 1 in order.

Any help would be appreciated.

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.