Converting plots to ggplot2