talgalili / dendextend

Extending R's Dendrogram Functionality
153 stars 29 forks source link

untangle generates number of items to replace is not a multiple of replacement length warning for some methods #113

Open djwalkr opened 1 year ago

djwalkr commented 1 year ago

When untangling two large dendrograms I get "In weights_for_order[order_x[order]] <- weights the number of items to replace is not a multiple of replacement length". There are no NAs, the dendrograms plot normally individually and without untangling. Untangle methods "label", "ladderize", "random", and "DendSer" all work without generating an error for the same data. It is only when sides are permuted that the error appears. Presumably the weighting function is generating some kind of NA? These are only warnings and the dendrograms draw - with results comparable DendSer

talgalili commented 1 year ago

Hey @djwalkr Thanks for the report. I'm not sure how to address it. Any chance for a small reproducible example?

(otherwise, I propose to close the issue until such an example will be available to debug and fix)