Category: Uncategorized

Plotting Histograms with Density Plots in R (ggplot2)

Last week I needed to plot some distributions of means of proportions of correct answers of a experiment.  As all we hate bar charts,  we must favour plots that show the data variability. I decided to make a histogram with density plot and mean. First I simulated a dataset in long format (each row is an observation), which are the ones that I regularly use then I make the plot….