- Applied Supervised Learning with R
- Karthik Ramasubramanian Jojo Moolayil
- 136字
- 2021-06-11 13:22:29
Histogram
A histogram is a visualization consisting of rectangles whose area is proportional to the frequency of a variable and whose width is equal to the class interval.
The height of the bar in a histogram represents the number of observations in each group. In the following example, we are counting the number of observations for each type of job and marital status. y is a binary variable checking whether the client subscribed a term deposit or not (yes, no) as a response to the campaign call.
It looks like blue-collar individuals are responding to the campaign calls the least, and individuals in management jobs are subscribing to the term deposit the most:
ggplot(data = df_bank_detail) +
geom_bar(mapping = aes(x=job, fill = y)) +
theme(axis.text.x = element_text(angle=90, vjust=.8, hjust=0.8))

Figure 1.11: Histogram of count and job
- 24小時學會電腦組裝與維護
- Linux KVM虛擬化架構實戰指南
- Python GUI Programming:A Complete Reference Guide
- Intel FPGA/CPLD設計(高級篇)
- 電腦常見故障現場處理
- 平衡掌控者:游戲數值經濟設計
- Mastering Manga Studio 5
- Hands-On Machine Learning with C#
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 單片機開發與典型工程項目實例詳解
- Wireframing Essentials
- Hands-On Motion Graphics with Adobe After Effects CC
- WebGL Hotshot
- Angular 6 by Example
- 微服務實戰