You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am excited to introduce a new library we've (@nickeubank) been working on, seaborn_objects_recipes. This library extends seaborn.objects by providing additional functionalities that we hope will be useful for your data visualization needs.
Features
The library includes the following recipes:
Rolling: Apply rolling window calculations to your data.
LineLabel: Add labels directly to your lines for better readability.
Lowess: Perform locally-weighted regression smoothing, with support for confidence intervals.
PolyFitWithCI: Fit polynomial regression models and include confidence intervals.
Example Usage
Here's a quick example using the PolyFitWithCI recipes:
importseaborn.objectsassoimportseabornassnsimportseaborn_objects_recipesassor# Load the penguins datasetpenguins=sns.load_dataset("penguins")
# Prepare datadata=penguins.copy()
data=data[data["species"] =="Adelie"]
# Create the plotplot= (
so.Plot(data, x="bill_length_mm", y="body_mass_g")
.add(so.Dot())
.add(so.Line(), PolyFitWithCI:=sor.PolyFitWithCI(order=2, gridsize=100, alpha=0.05))
.add(so.Band(), PolyFitWithCI)
.label(x="Bill Length (mm)", y="Body Mass (g)", title="PolyFit Plot with Confidence Intervals")
)
# Display Plotplot.show()
Output
Acknowledgements
We'd like to acknowledge and thank the following contributors from whom we've borrowed code:
Feedback Request
We are looking for feedback on the following:
Integration: Should this library remain a separate extension, or would it be better to roll these features directly into seaborn.objects?
Confidence Intervals: We are particularly interested in feedback on how we're handling confidence intervals in our Lowess and PolyFitWithCI implementations.
You can find the library and more examples on our GitHub repository: seaborn_objects_recipes.
Looking forward to your feedback!
The text was updated successfully, but these errors were encountered:
I am excited to introduce a new library we've (@nickeubank) been working on,
seaborn_objects_recipes
. This library extendsseaborn.objects
by providing additional functionalities that we hope will be useful for your data visualization needs.Features
The library includes the following recipes:
Example Usage
Here's a quick example using the
PolyFitWithCI
recipes:Output
Acknowledgements
We'd like to acknowledge and thank the following contributors from whom we've borrowed code:
Special thanks to @JesseFarebro for Rolling, LineLabel
Special thanks to @tbpassin and @kcarnold for LOWESS Smoother
Feedback Request
We are looking for feedback on the following:
Lowess
andPolyFitWithCI
implementations.You can find the library and more examples on our GitHub repository: seaborn_objects_recipes.
Looking forward to your feedback!
The text was updated successfully, but these errors were encountered: