Hi.
I have a data set that looks like this:
And what I want to do is to group the individuals on the X-axis into their respective populations, rather than displaying the individual number. So, something like this:
Any ideas?
Thank you!
Dataset:
pop <- c("Apple", "Apple", "Apple", "Carrot", "Carrot", "Carrot", "Pear", "Pear", "Melon", "Melon")
value <- c(5,5,4,3,3,3,5,6,7,8)
ind <- 1:10
df <- data.frame(pop=pop, value=value, ind=ind)