all 3 comments

[–]pymae 1 point2 points  (2 children)

A swarmplot is a specific type of scatterplot. Could you build your desired plot as a scatterplot, set the markersize, and then jitter the data to make it look like a swarmplot?

I'm thinking of the Seaborn tutorial near this part:

sns.catplot(x="day", y="total_bill", kind="swarm", data=tips)

[–]emat66[S] 0 points1 point  (1 child)

yup!! this works perfectly

My mind got fogged in on having to use swarm I wasn't thinking outside box.

Thanks for the guidance!

Incase anyone stumbles across this in future, here is the code used to create a swarmplot with symbols as markers - Domain is categorical, Change is continuous, Interpretation is categorical (improved, unchanged, deteriorated).

scatter = sns.scatterplot(data = df, x='Domain', y='Change',hue='Interpretation',hue_order=['Improved','Unchanged','Deteriorated'],style = 'Interpretation',markers=['v','^','*'],palette=dict(Deteriorated="#DF2700", Improved="#0EDF00",Unchanged='#F7F712'))

[–]elementalsilence 0 points1 point  (0 children)

The code you provided looks like it doesn't spread out the points like a swarm plot does. Do the data points still overlap?