【python】seaborn可视化之factorplot()

sns.factorplot(x='day',y='total_bill',hue='smoker',data=tips)

【python】seaborn可视化之factorplot()

sns.factorplot(x='day',y='total_bill',hue='smoker',data=tips,kind='bar')

【python】seaborn可视化之factorplot()

可绘制多个图

sns.factorplot(x='day',y='total_bill',hue='smoker',
               col='time',data=tips,kind='swarm')

【python】seaborn可视化之factorplot()

sns.factorplot(x='time',y='total_bill',hue='smoker',
               col='day',data=tips,kind='box',size=4,aspect=0.5)

参数kind:point默认,bar柱形图,count频次,box箱体,violin提琴,strip散点,swarm分散点

【python】seaborn可视化之factorplot()