maelstrom-research / Rmonize

3 stars 0 forks source link

harmonized_dossier_visualize() report "missing categorical value" bar plots have only one bar #23

Closed zchenmr closed 8 months ago

zchenmr commented 8 months ago

The pooled harmonized visual report on the DEMO files, when using a grouping variable, has bar plots of missing categorical values across groups for each variable. This is informative if there are multiple types of missing values (ex: NA, don't know, prefer not to answer) but less so when there is only one type of missing value. In cases where there are only NA values and no other types of missing values, the pie charts below the bar plots provide a better visual representation of the information. Maybe there would be a better way to visualize the count of NA values other than having single bars in a bar plot, or maybe this plot could be removed when NA is the only type of missing value.

image

image

GuiFabre commented 8 months ago

good point 👍

image

zchenmr commented 8 months ago

Seems to be resolved - the bar plot only appears when there are multiple missing value types, otherwise only the pie chart is shown.