added plot making functionality for combined plots