R Adding Rectangular Border Around Plot And Legend In Ggplot2 Stack

R Adding Rectangular Border Around Plot And Legend In Ggplot2 Stack