- 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
- Aftershot Pro:Non-destructive photo editing and management
- Intel FPGA/CPLD設計(基礎篇)
- 龍芯應用開發標準教程
- 嵌入式技術基礎與實踐(第5版)
- Getting Started with Qt 5
- 嵌入式系統設計教程
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- 面向對象分析與設計(第3版)(修訂版)
- 筆記本電腦維修300問
- BeagleBone Robotic Projects
- LPC1100系列處理器原理及應用
- RISC-V處理器與片上系統設計:基于FPGA與云平臺的實驗教程
- Blender Game Engine:Beginner's Guide
- WebGL Hotshot
- 3D Printing Blueprints