Regression plot parameters
Seaborn's regression plot supports several parameters that can be used to configure the plots and drive more insight into the data.
For the next exercise, we can look at the relationship between tuition and the percent of students that receive Pell grants.
A Pell grant is based on student financial need and subsidized by the US Government. In this data set,
each University has some percentage of students that receive these grants. Since this data is continuous,
using x_bins
can be useful to break the percentages into categories in order to summarize and understand the data.
This exercise is part of the course
Intermediate Data Visualization with Seaborn
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Plot a regression plot of Tuition and the Percentage of Pell Grants
sns.regplot(data=df,
y='Tuition',
x='____')
plt.show()
plt.clf()