{"action":"opened","issue":{"url":"https://api.github.com/repos/royfrancis/pophelper/issues/4","repository_url":"https://api.github.com/repos/royfrancis/pophelper","labels_url":"https://api.github.com/repos/royfrancis/pophelper/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/royfrancis/pophelper/issues/4/comments","events_url":"https://api.github.com/repos/royfrancis/pophelper/issues/4/events","html_url":"https://github.com/royfrancis/pophelper/issues/4","id":219697500,"number":4,"title":"Sort by group AND individual labels?","user":{"login":"HeatherKates","id":10468058,"avatar_url":"https://avatars3.githubusercontent.com/u/10468058?v=3","gravatar_id":"","url":"https://api.github.com/users/HeatherKates","html_url":"https://github.com/HeatherKates","followers_url":"https://api.github.com/users/HeatherKates/followers","following_url":"https://api.github.com/users/HeatherKates/following{/other_user}","gists_url":"https://api.github.com/users/HeatherKates/gists{/gist_id}","starred_url":"https://api.github.com/users/HeatherKates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeatherKates/subscriptions","organizations_url":"https://api.github.com/users/HeatherKates/orgs","repos_url":"https://api.github.com/users/HeatherKates/repos","events_url":"https://api.github.com/users/HeatherKates/events{/privacy}","received_events_url":"https://api.github.com/users/HeatherKates/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-05T19:59:02Z","updated_at":"2017-04-05T19:59:02Z","closed_at":null,"body":"Hello! \r\nI want to have generate a barplot where individuals are sorted by their population group and also have their labels displayed. \r\n\r\nI can sort individuals by group labels using plotQ:\r\n\r\n`plotQ(qlist=qlist2[i],sortind=\"all\",grplab=list(\"lab1\"=grp$V2),sp=F,subsetgrp=c(\"Wild\",\"Landrace\",\"Improved\"))`\r\n\r\nOR\r\n\r\nI can use individual labels using plotQMultiline:\r\n\r\n```\r\ninds <- read.delim(\"structureindlabels.txt\",header=FALSE,stringsAsFactors=FALSE)\r\n# add labels as rownames to qlist\r\nrownames(qlist2[[1]]) <- inds$V1\r\n#plot with individual labels\r\nplotQMultiline(qlist2[i],spl=48,lpp=2,useindlab=T,sortind = \"Cluster1\")\r\n\r\n```\r\nHowever I can't find any both sort by group and label individuals in the same plot. It seems that this would be a very common need for users, so I must be missing something. Without this, it's extremely difficult for me to get or display the basic information about my data in one plot.\r\n\r\nThank you!\r\nHeather Rose``"}}
{"actor":{"display_login":"HeatherKates"}}