Arrange data and produce latticeplots