Skip to content

Commit

Permalink
include log10 y axis for coverage plot
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation authored Oct 29, 2020
1 parent 48a1f0e commit ed75ee4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/coverage_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ plot <- ggplot(input) +
theme_classic() +
labs(title=as.vector(input$V1[[1]]),
x="Genome position",
y="Coverage")
y="Coverage") +
scale_y_continuous(trans = log10_trans(),
breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x)))


svg("overview.svg", height = 3, width = 12)
Expand Down

0 comments on commit ed75ee4

Please sign in to comment.