added aggdim for overall plot