barplot: categorical vs continuous point plot: แสดงจุดประมาณค่า factorplot: high-level function วาด categorical plot บน FacetGrid ด้วย 'kind' parameter kind='violin' สร้าง violin plot
ตัวอย่าง
import pandas as pd
import seaborn as sb
from matplotlib import pyplot as plt
my_df = sb.load_dataset('exercise')
sb.factorplot(x="time", y="pulse", hue="kind", kind='violin', data=my_df)
plt.show()
ผลลัพธ์

คำอธิบาย
- นำเข้าแพ็กเกจ
- โหลดข้อมูล 'exercise' จาก seaborn
- เก็บใน DataFrame
- ใช้ 'factorplot' kind='violin'
- ระบุ hue, x, y, data
- แสดงผล
Violin plot = box plot + kernel density estimate แสดงการกระจายข้อมูลละเอียดกว่า box plot