You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm plotting my admixture results for a selection of samples of bats across their distributional range. I have samples from many western North American populations. Here is an example of visualizing k=2 and k=3 together.
I'm struggling to get the order of the group labels correct. No matter what I do the order of the group labels is always alphabetical. My preference would be to display these results in the following order: c("AK","BC","WA","MT","ID","CA","NV","UT","CO","NM","TX","OK","MX","BAJA"). However, factor reordering does not do this nor does the "subset" call in PlotQ. I've included my code below so you can see how I'm setting up the data.
Any advice you can provide would be appreciated. Thanks!
Hello,
I'm plotting my admixture results for a selection of samples of bats across their distributional range. I have samples from many western North American populations. Here is an example of visualizing k=2 and k=3 together.
I'm struggling to get the order of the group labels correct. No matter what I do the order of the group labels is always alphabetical. My preference would be to display these results in the following order: c("AK","BC","WA","MT","ID","CA","NV","UT","CO","NM","TX","OK","MX","BAJA"). However, factor reordering does not do this nor does the "subset" call in PlotQ. I've included my code below so you can see how I'm setting up the data.
Any advice you can provide would be appreciated. Thanks!
Code:
The text was updated successfully, but these errors were encountered: