Relational plots depict the relationship between two continuous variables. There is one common API in seaborn, relplot(), which is used for two types of plots: line and scatter plots. However, there are separate functions for each of these two types as well: lineplot() and scatterplot(). We can either use relplot() with an argument to plot a line plot or scatter plot, or directly use the lineplot() and scatterplot() functions.
Relational plots
Line plots with one-to-one and one-to-many relationships
In line plots, observations are connected to a line whose style can be customized. The relationship between x and y variables could be one-to-one, or at times it could be one-to-many. In our Snack Sales dataset, if we plot each...