Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat_coverage Y-axis limits or Y-max #105

Open
chrisgulvik opened this issue Aug 2, 2018 · 0 comments
Open

stat_coverage Y-axis limits or Y-max #105

chrisgulvik opened this issue Aug 2, 2018 · 0 comments

Comments

@chrisgulvik
Copy link

How do I constrain the Y-axis for stat_coverage? Specifying ylim=(0,150) and ymax=150 doesn't work in aes() and prints "Error: subscript contains invalid names" but works without that part. Because coverage is so varied, I'd like to: (1) identify excess coverage sites, (2) constrain the coverage plot to something reasonable, say 150x, and (3) overlay excess coverage sites in red.

ggplot() + stat_coverage(short.bam, geom = 'line', col = 'blue', alpha = 0.2, aes(ymax=150)) + plotExcessCovSites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant