Rug plot and kde shading
Now that you understand some function arguments for displot(), we can continue
further refining the output. This process of creating a visualization and updating it in an
incremental fashion is a useful and common approach to look at data from multiple perspectives.
Seaborn excels at making this process simple.
Deze oefening maakt deel uit van de cursus
Intermediate Data Visualization with Seaborn
Oefeninstructies
- Create a
displotof theAward_Amountcolumn in thedf. - Configure it to show a shaded kde plot (using the
kindandfillparameters). - Add a rug plot above the x axis (using the
rugparameter). - Display the plot.
Interactieve oefening met praktijkervaring
Probeer deze oefening door deze voorbeeldcode aan te vullen.
# Create a displot of the Award Amount
sns.displot(df['____'],
kind='____',
rug=____,
fill=____)
# Plot the results
plt.____()