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 am trying to plot fastSTRUCTURE results using pophelper. However, I using a list of individuals with the subpopulation label (pop_info). The first subpopulation "BOP" has 159 individuals and is not showing in the plot. I don't know how to fix it. Could you please assist me with that?
Dear,
I am trying to plot fastSTRUCTURE results using pophelper. However, I using a list of individuals with the subpopulation label (pop_info). The first subpopulation "BOP" has 159 individuals and is not showing in the plot. I don't know how to fix it. Could you please assist me with that?
Please find below the script:
Population label
pop_info = data.frame(read.delim("WiDiv_panel_pop_info.txt", header=F,stringsAsFactors=F))
head(pop_info)
V1
1 BOP
2 Popcorn
3 Mixed
4 Sweet_corn
5 Mixed
6 BOP
K12
K12 = function(x) attr(x,"k")
spnames = paste0("K=", sapply(slist,K12))
plotQ(qlist=slist[4], splab=spnames[4], splabface="bold", splabsize=4, clustercol=c("red","blue","purple","coral","cyan","chartreuse","plum1","darkgreen","grey","tomato2","yellow","black"), height=4,
grplab=pop_info, subsetgrp=c("BOP", "IDT", "Mixed", "NSS-Mo17", "NSS-Oh43", "Popcorn", "SS-B14", "SS-B37", "SS-B73", "SS-BSSSC0", "Sweet_corn", "Tropical"), ordergrp=T, showlegend=T, legendtextsize=4,
grplabangle=-90, grplabjust=0, grplabpos=0.8, linepos=1, legendlab=c("K1","K2","K3","K4","K5","K6","K7","K8","K9","K10","K11","K12"),
showtitle=T, showsubtitle=T, titlelab="STRUCTURE", subtitlelab=expression("Population structure in" ~ italic("Zea mays") ~ "WiDiv panel"),
outputfilename="WiDiv_panel_Maize_543samples_Pop_K12", imgtype="png")
Plot
Thank you!
The text was updated successfully, but these errors were encountered: