Removed unused ggplot2 code causing warnings