hubverse-org / hubVis

Plotting methods for hub model outputs
https://hubverse-org.github.io/hubVis/
Other
3 stars 0 forks source link

Error message unclear when number of facets to high. #19

Closed LucieContamin closed 5 months ago

LucieContamin commented 8 months ago

The current error message is not very informative if the number of facet requested with the facet_nrow and facet_ncol is too high and causes issues:

Error in (function (obj, domains)  : 
  'list' object cannot be coerced to type 'double'
In addition: Warning messages:
1: In mapply(FUN = f, ..., SIMPLIFY = FALSE) :
  longer argument not a multiple of length of shorter
2: In split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
  data length is not a multiple of split variable