Seaborn: Overlay Line Plot On Top Of Bar Chart
Here is my dataframe - easy_donor length count freq 0 Donor 1 NS 0 15637 0.000188 1 Donor 1 NS 1 144539 0.001737 2 Donor 1 NS 2 129792 0.001560 3 Donor
Solution 1:
You might find this previous question useful which points to this seaborn tutorial.
I think this snippet will get you most of the way,
g = sns.FacetGrid(collection_lengths, col="easy_donor", hue='easy_donor')
g = g.map(sns.barplot, 'length', 'freq')
g = g.map(sns.pointplot, 'length', 'freq')
g.set(xticks=range(2,31,3),xticklabels=range(2,31,3))
g.set_axis_labels("HCDR3 Length","Frequency")
g.set_xticklabels(rotation=30)
Post a Comment for "Seaborn: Overlay Line Plot On Top Of Bar Chart"