Plots
library(ggplot2)
ggplot(diamonds, aes(price, fill = cut)) +
geom_histogram(binwidth = 500) +
ggtitle("normal")
ggplot(diamonds, aes(price, fill = cut)) +
geom_histogram(binwidth = 500, position = "fill") +
ggtitle("filled")
Maths
\[
P(A\mid B)={\frac {P(B\mid A)P(A)}{P(B)}}
\]