For a minimal, reproducible example (reprex) let's assume I have reaction times (seconds) of animals in the following data structure, saved in a .csv file. The file is called "ReactionTimes.csv"
"Birds","Mammals"
1.15878,1.494555
1.418479,1.738676
1.034765,1.541106
1.310064,1.328025
1.087671,1.583186
1.001802,1.770486
So far I was not able to adapt the solution from here How to create swarm plot with matplotlib to my data structure, thus my code looks like this:
import pandas as pd
import pylab as plt
import seaborn as sns
RT = pd.read_csv('ReactionTimes.csv')
print(RT)
prints the table correctly.
The commands sns.scatterplot(RT["Birds"],RT["Mammals"])
and sns.swarmplot(RT["Birds"],RT["Mammals"])
produce plots, but those don't look like the desired plot. The goal should look like this:
So how can I create a comparative scatter plot/swarm plot? I am fine with a solution using any of the libraries Pylab, Seaborn or Plotly.