add ggplot2 to imports field and remove require commands