Replies: 3 comments
-
I've seen those (not necessarily with the jittered dots) called TIE fighter plots. This is not exactly what you're looking for, but maybe with some of these techniques you could get close. It is probably worth messing around with import seaborn.objects as so
from seaborn import load_dataset
penguins = load_dataset("penguins")
(
so.Plot(penguins, x="species", y="body_mass_g", color="sex")
.add(so.Dot(alpha=0.5), so.Jitter(), so.Dodge())
.add(so.Range(), so.Perc([20, 80]), so.Dodge())
.add(so.Dash(), so.Perc([20, 50, 80]), so.Dodge())
.label(x=None, y="Body Mass (g)", color=None)
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This looks great! I haven't played with the new syntax yet, but the graph
you produced here was considerably easier than my forcing it in matplotlib.
…On Thu, Nov 3, 2022 at 5:54 PM Kyle Mitchell ***@***.***> wrote:
I've seen those (not necessarily with the jittered dots) called TIE
fighter plots.
This is not exactly what you're looking for, but maybe with some of these
techniques you could get close. It is probably worth messing around with
Est <https://seaborn.pydata.org//generated/seaborn.objects.Est.html>
object.
import seaborn.objects as sofrom seaborn import load_dataset
penguins = load_dataset("penguins")
(
so.Plot(penguins, x="species", y="body_mass_g", color="sex")
.add(so.Dot(alpha=0.5), so.Jitter(), so.Dodge())
.add(so.Range(), so.Perc([20, 80]), so.Dodge())
.add(so.Dash(), so.Perc([20, 50, 80]), so.Dodge())
.label(x=None, y="Body Mass (g)", color=None)
)
[image: image]
<https://user-images.githubusercontent.com/45919695/199850171-56d04d9d-83d7-4efa-9fb6-70ad27980737.png>
—
Reply to this email directly, view it on GitHub
<#3123 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHQESRS4PNQXQXIB2KUFTTWGQ7DPANCNFSM6AAAAAARWR4TC4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
And in the classic interface, it's not precisely what you are asking for, but this is basically a spec = dict(data=penguins, x="species", y="body_mass_g", hue="sex", dodge=.4)
sns.catplot(**spec, alpha=.25, legend=False)
sns.pointplot(**spec, capsize=.3, errorbar="sd", join=False) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure what they are officially called, but I like this style of plots showing the individual data with lines marking the centroid (mean/median) and the error (SD, SEM, etc).
anpp_grass.pdf
Is this a feature that could be added? The strip plot allows the dots, but the part for the lines doesn't exist so far as I could tell.
Beta Was this translation helpful? Give feedback.
All reactions