Skip to content

Commit

Permalink
fixed caption in chromatogram plotting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasenfinch committed Nov 11, 2021
1 parent 38265b3 commit 573bc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ plotChrom <- function(chromatograms,scans){
geom_line() +
plotTheme() +
scale_y_continuous(expand = c(0,0)) +
labs(title = 'TIC chromatograms of infusion profile',
caption = 'Red lines indcate scan range used for spectral binning.') +
labs(title = 'TIC chromatograms of infusion profile') +
facet_wrap(~polarity,
scales = 'free',
ncol = 1) +
Expand All @@ -101,6 +100,7 @@ plotChrom <- function(chromatograms,scans){

if (length(scans) > 0) {
pl <- pl +
labs(caption = 'Red lines indcate scan range used for spectral binning.') +
geom_vline(xintercept = min(scans),colour = 'red',linetype = 2) +
geom_vline(xintercept = max(scans),colour = 'red',linetype = 2)
}
Expand Down

0 comments on commit 573bc31

Please sign in to comment.