data visualization

Histogram

December 15, 2021
visualization
ggplot2, R, data visualization

Overview # A histogram is a visualization that shows the spread of a numerical variable. The way histograms are assembled is by taking a numerical variable, and chunking the data up into bins. Each bin reflects a count of the number of observations that fall within a range. For example, if we have a super simple numerical variable made up of 1, 3, 5, 7, 11, 13, and we define two bins, where one bin includes everything from 0 to 10, and the other bin containing everything everything above 10 to 20, then the bin from 0 to 10 includes 4 observations, and the bin from above 10 to 20 includes two observations. ...

Bar Plot

visualization
data visualization

Overview # A bar plot is a data visualization that shows the relationship between a categorical variable and a numerical variable. Think of a categorical value as a type of thing, and a numerical variable as anything that can be counted or measured. Data # A bar plot requires at least one categorical variable and one numerical variable. Additional variables can be reflected in the bar plot using such additional features as colors, textures, or outlines. ...