When calling ggally_cor on data sets with less than 3 samples the function errors out due cor.test.default requiring more than 2 samples. It would be better if the function would not fail hard but return NA instead since ggally_cor is also used within ggpairs which would then also fail if used in conjunction with a mapping that leads to combinations with less than 3 samples.
When calling ggally_cor on data sets with less than 3 samples the function errors out due cor.test.default requiring more than 2 samples. It would be better if the function would not fail hard but return NA instead since ggally_cor is also used within ggpairs which would then also fail if used in conjunction with a mapping that leads to combinations with less than 3 samples.