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
When calling plot_qq with a "by" parameter, an error is thrown: Error in combine_vars(): ! Faceting variables must have at least one value
While debugging, it appears that error happens in this precise case:
the number of continuous variables is such that there remains 1 plot in the last page; e.g. 217 continuous variables for a 3x3 page => 24 pages with 9 plots each + 1 page with 1 plot
the "by" parameter is among the continuous variables, it is removed from dt2, so only N-1 variables are plotted => the last page is empty!
when trying to plot the last page, the error is thrown.
Solution:
In plot_qq, check that "by" is not among the continuous variables:
nplots <- ncol(continuous)
if (!is.null(by) && by %in% names(split_obj$continuous)) nplots <- nplots - 1
layout <- .getPageLayout(nrow, ncol, nplots)
The text was updated successfully, but these errors were encountered:
When calling plot_qq with a "by" parameter, an error is thrown: Error in
combine_vars()
: ! Faceting variables must have at least one valueWhile debugging, it appears that error happens in this precise case:
Solution:
In plot_qq, check that "by" is not among the continuous variables:
nplots <- ncol(continuous)
if (!is.null(by) && by %in% names(split_obj$continuous)) nplots <- nplots - 1
layout <- .getPageLayout(nrow, ncol, nplots)
The text was updated successfully, but these errors were encountered: