Visualize the distribution of a single continuous variable by dividing the x axis into bins and counting the number of observations in each bin.
Data points that are considered outliers can be binned together. This might be helpful to display numerical data over a very wide range of values in a compact way.
Usage
histbin(
data,
x,
left = NULL,
right = NULL,
line = FALSE,
bins = 30,
fill = "#E7B800",
fill_outliers = "#a7d1a7"
)
Arguments
data
data.frame
x
variable name in data.frame `data` that should be mapped