October 2018
Beginner to intermediate
676 pages
18h 30m
English
We will plot four violin plots with different options here:
sns.catplot(x='Sales', y='Item', data=long_sales, kind='violin', height=6, aspect=1) plt.title('1. Horizontal Violin Plot', size=15, color='g', weight='bold')
sns.catplot(x='Item', y='Sales', data=long_sales, kind='violin', hue='Promotion', hue_order=["Yes", "No"], split=True, height=4, aspect=2) plt.title('2. Vertical Violin Plot, hue=Promotion, split=True', size=15, color='g', weight='bold')
Read now
Unlock full access