Make the code reusable for different plot
Set graphic devices and output graphics
Output four graphics
Save working image