added support for displaying percentage distribtuion for p-plot