Here is the explanation of the preceding code.
This is the first plot:
- kind='point' specifies that it is a pointplot().
- ci=99.99 specifies the confidence interval.
- capsize=0.25 specifies the width of the cap on top of the error bar.
- order=['Cakes', 'Pies', 'Cookies', 'Smoothies', 'Coffee', 'weekday', 'Period']) specifies the order of the items on the axis.
This is the second plot:
- markers='D' specifies using a diamond marker in place of a circle.
- ci='sd' specifies using standard deviation for the confidence interval.
This is the third plot:
- hue='Promotion' specifies using the Promotion variable as hue.
- hue_order=['Yes','No'] is the order in which hue values are plotted.
- palette={"Yes": "r", "No": "indigo"} is the custom ...