From ed75ee4ad09ae81935a28cabca1265514199cb02 Mon Sep 17 00:00:00 2001 From: Christian Brandt <35726766+replikation@users.noreply.github.com> Date: Thu, 29 Oct 2020 17:29:06 +0100 Subject: [PATCH] include log10 y axis for coverage plot --- bin/coverage_plot.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/coverage_plot.R b/bin/coverage_plot.R index dbb207a..d73d28a 100755 --- a/bin/coverage_plot.R +++ b/bin/coverage_plot.R @@ -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)