I was actually able to figure it out with a friend from my lab.
Basically, I used factor()
instead of mutate()
Then I needed to make sure that both AA_summary
and Aminoacid_data
had $Species
as a factor with the correct order of levels.
I was actually able to figure it out with a friend from my lab.
Basically, I used factor()
instead of mutate()
Then I needed to make sure that both AA_summary
and Aminoacid_data
had $Species
as a factor with the correct order of levels.