Generalising function
Can specify plot dimensions, starting on groups
Groups seem to work