Regression line using Relplot in seaborn
问题 Below is a working example where I need to draw regression line. I have searched online but I see another function like regplot, implot to draw regression lines but here I am using replot. How I can draw regression line using relplot? from matplotlib import pyplot as plt import pandas as pd import seaborn as sns d = {'x-axis':[100,915,298,299], 'y-axis': [1515,1450,1313,1315], 'text':['point1','point2','point3','point4']} df = pd.DataFrame(d) p1 = sns.relplot(x='x-axis', y='y-axis',data=df )