omarwagih / ggseqlogo

Publication-quality sequence logos in R
208 stars 30 forks source link

Error bars #25

Open rioualen opened 2 years ago

rioualen commented 2 years ago

Hi,

Thank you for this cool package! Is there a way to add error bars to the logos?

Claire

omarwagih commented 2 years ago

Hi Claire, ggseqlogo returns a ggplot object which you can extend with ggplot in whatever way you want including geom_errorbar

ggseqlogo(seqs) + geom_errorbar(data=df, aes(x, y, ymin, ymax))

should work, given a data frame (df) containing the error bar information