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 trying to create a plot based on STRUCTURE output. I've gone through the online tutorials and have been able to create plots, however I have encountered an issue when trying to get a plot that respects both arguments sortind = "all" as well as a custom group order that I would like the plot to display.
I've pasted the code below. If I don't include sortind = "all", then the order of the groups as I wish them to appear (subsetgrp = order_cluster) works fine, but if I then add it back in, the individuals become sorted by Q, but the groups are no longer in the order I would like them to be. Are there any solutions for this or are these arguments mutually exclusive?
Hi,
I'm trying to create a plot based on STRUCTURE output. I've gone through the online tutorials and have been able to create plots, however I have encountered an issue when trying to get a plot that respects both arguments sortind = "all" as well as a custom group order that I would like the plot to display.
I've pasted the code below. If I don't include sortind = "all", then the order of the groups as I wish them to appear (subsetgrp = order_cluster) works fine, but if I then add it back in, the individuals become sorted by Q, but the groups are no longer in the order I would like them to be. Are there any solutions for this or are these arguments mutually exclusive?
order_cluster <- c("Poole", "F/down", "Walkford", "Shawford", "Wr/sham", "Walton", "Norwood", "Crawley", "Hastings")
Visualise
p2 <- plotQ(slist2[c(24, 27)], imgoutput = "join", returnplot = TRUE, exportplot = FALSE, basesize = 11,
sharedindlab = FALSE,
sortind = "all",
grplab = bws18_pop, grplabsize = 4,
linesize = 0.8, ordergrp = TRUE,
subsetgrp = order_cluster,
showdiv = TRUE, divsize = 1,
splab = c("K=8", "K=9"), splabsize = 17)
grid.arrange(p2$plot[[1]])
Additional info:
packageVersion("pophelper") = 2.3.1
R version 4.1.2 (2021-11-01)
sysname "Darwin"
Thank you and all the best. Please let me know if I can provide you with any other information.
The text was updated successfully, but these errors were encountered: