Histograms and Density Plots in ggplot2
Now you will learn the ggplot2 syntax for building and customizing histograms.
Change histogram plot line types and colors
# Change line color and fill color ggplot(df, aes(x=weight))+ geom_histogram(color="darkblue", fill="lightblue") # Change line type ggplot(df, aes(x=weight))+ geom_histogram(color="black", fill="lightblue", linetype="dashed")