use ggplot2 to plot data