Skip to content

Commit

Permalink
change limits for overview plot in CountSpacerApp
Browse files Browse the repository at this point in the history
  • Loading branch information
opitzl committed May 5, 2020
1 parent 09de60f commit fd743d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/templates/CountSpacer.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ p <- ggplot(data, aes(x=group, y=counts))
h <- h + ggtitle(paste0(sampleName, '-Histogram 0MM')) + ylab('Number of sgRNAs') + xlab('Log2 count per sgRNA (0MM)')
print(h)
plot(sortedCounts, pch = c(15), cex = 0.7, main = paste(sampleName, '- sgCount Overview'), ylab = 'log2(sgRNA Count)')
plot(sortedCounts, pch = c(15), cex = 0.7, main = paste(sampleName, '- sgCount Overview'), ylab = 'log2(sgRNA Count)', ylim = c(0, max(max(sortedCounts), 1.05*upperCutOff)))
abline(h = mean(sortedCounts))
abline(h = upperCutOff, lty = 2)
abline(h = lowerCutOff, lty = 2)
text(length(sortedCounts)*0.05, 1.05*mean(sortedCounts), bquote(mu==.(mu)), cex = 0.8)
text(length(sortedCounts)*0.8, 1.05*upperCutOff, paste0('#',up_sgRNAs, ' (',relUp_sgRNA,'%)' ), cex = 0.8)
text(length(sortedCounts)*0.15, 0.95*lowerCutOff, paste0('#',down_sgRNAs, ' (',relDown_sgRNA,'%)' ), cex = 0.8)
text(length(sortedCounts)*0.8, 1.02*upperCutOff, paste0('#',up_sgRNAs, ' (',relUp_sgRNA,'%)' ), cex = 0.8)
text(length(sortedCounts)*0.15, 0.96*lowerCutOff, paste0('#',down_sgRNAs, ' (',relDown_sgRNA,'%)' ), cex = 0.8)
```

### Data availability
Expand Down

0 comments on commit fd743d1

Please sign in to comment.