Creates a histogram with density plot for numeric vectors

make_numeric_histogram(df, var, varname)

Arguments

df

A dataframe

var

A numeric column contained in df that will be graphed

varname

A string containing the name of the column to be graphed. This is used only for labeling the graph, so alternative wording can be used, if desired.

Value

A ggplot2 object containing the histogram and density plot for that column