October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here are the steps to plot the required plots:
g1 = sns.lmplot(x='fixed acidity', y='pH', hue='Quality', hue_order= ['Low', 'Med', 'High'], logx=True, data=wine_quality, height=4, aspect=2, ci=None)
g2 = sns.lmplot(x='fixed acidity', y='pH', data=wine_quality, ci=99, col='Quality', col_order=['Low', 'Med', 'High'], height=3, robust=True, scatter_kws={'color': 'g'})g2 = g2.set_axis_labels("Fixed Acidity", "pH")g2.set(xlim=(0, 20), ylim=(2.4, 4.0), xticks=[5, 10, 15, 20], yticks=[2.5, 3.0, 3.5, 4.0])
Read now
Unlock full access