Layout Constrained Matplotlib Plot Function In R