Removed dev.print() because of legend scaling problems, added plot 4