diff --git a/NEWS b/NEWS index 8f4d1ae..0e2d62c 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ pophelper 2.2.7 =========== * 23-May-2018 * With joined plots, group labels and sorting, div lines were incorrectly printed causing plots to be misaligned. This has been resolved. +* Removed restriction of setting 'ordergrp=T' when sorting by cluster or 'all'. pophelper 2.2.6 =========== diff --git a/R/pophelper.R b/R/pophelper.R index d4c2681..6e65830 100644 --- a/R/pophelper.R +++ b/R/pophelper.R @@ -2976,8 +2976,6 @@ plotQ <- function(qlist=NULL,imgoutput="sep",clustercol=NA,sortind=NA,grplab=NA, { # checks if(flen < 2) stop("plotQ: Joined plot cannot be created. Number of selected files less than 2.") - if(grplabcheck && grplablen>1 && sortindcheck!="empty" && !ordergrp) stop("plotQ: With Joined plot, when using grplab with multiple label groups and sorting by cluster or 'all', set 'ordergrp=TRUE'.") - tempdf <- tabulateQ(qlist,sorttable=FALSE) # checks if num of individuals differ between runs