more plotting functions and p-value calculation