Additional function for density plot
FIx bugs in plot_dens_par_comp()