Jun-09-2020, 08:36 AM
Hello all,
I hope it is OK to ask a seaborn question in this section. Please direct me elsewhere if not.
In a Jupyter Notebook, I generate a seaborn regplot with a robustregression line and no confidence intervals (image link below if required):
I don't think I can attach a csv file here. It's a short and simple dataset though:
ia,urv
0,0
0.0092,1.1
0.0105,1.9
0.0244,3
0.034,4.2
0.041,4.9
0.049,6
Thank you for your suggestions.
All the best.c
Regplot image here
I hope it is OK to ask a seaborn question in this section. Please direct me elsewhere if not.
In a Jupyter Notebook, I generate a seaborn regplot with a robustregression line and no confidence intervals (image link below if required):
sns.regplot(x=ohm["ia"], y=ohm["urv"],robust=True, ci=None, line_kws={"color":"r","alpha":0.7,"lw":2}) plt.grid(True) plt.xlim(0,0.05) plt.ylim(0, 6) plt.xlabel('$I(A)$') # plt.ylabel('$Ur(V)$') plt.title('Caractéristiques du dipôle $U=f(I)$')I would like to display the regression equation in the legend, but I cannot find a way to display the regression equation. I know how to derive it in code, but it occurs to me that regplot must have a method to recover the coefficients directly since by definition it plots the regression line. Is there a way to get to it?
I don't think I can attach a csv file here. It's a short and simple dataset though:
ia,urv
0,0
0.0092,1.1
0.0105,1.9
0.0244,3
0.034,4.2
0.041,4.9
0.049,6
Thank you for your suggestions.
All the best.c
Regplot image here