converting examples from qplot to ggplot