what is relational plot? Make a relational plot using seaborn.
Relational Plot the statistical relationship between the data points is visualized with the help of these plot, the function for this plot is relplot() which provides us access to some other different axes-level functions which shows the relationships between two variables with semantic mappings of subsets.
The scatterplot and lineplot both plots can be drawn by using kind parameter in the relplot. By default the relplot gives us scatterplot, lineplot can be drawn by using kind.
import seaborn as sns
Sample_data = sns.load_dataset('penguins')
sns.relplot(x="flipper_length_mm", y="body_mass_g", data=Sample_data)
sns.relplot(x="flipper_length_mm", y="body_mass_g", data=Sample_data, kind="line")
Here from the above figures: x - denotes which variable to be plot on x-axis y - denotes which variable to be plot on y-axis data - denotes the Sample data name that we have taken. kind - denotes which type of graph we want for plotting for e.g bar, scatter, line etc.