When using seaborn barplot I can specify an alpha for which it makes the bars semi-translucent. However, when I try this with Seaborn regplot I get an error saying this is an unexpected argument.
I read the documentation online and didn't find much, could someone point me in the right direction...
While regplot() always shows a single relationship, lmplot() combines regplot() with FacetGrid to provide an easy interface to show a linear regression on “faceted” plots that allow you to explore interactions with up to three additional categorical variables.
regplot() : This method is used to plot data and a linear regression model fit. There are a number of mutually exclusive options for estimating the regression model.
Similar to lineplot(), the regplot() function uses a 95% confidence interval by default but can specify the confidence level to use with the ci command.
Use the scatter_kws argument. For example:
ax = sb.regplot(x="total_bill", y="tip", data=tips, scatter_kws={'alpha':0.3})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With