Adding library import to ggplot generating files