Added library call to ggplot2

and removed `function()`