plot and group analysis