adding grouped stat plot