Skip to content

Commit

Permalink
fix: "file: " in matrix plot caption when comparing 2 matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Jan 10, 2024
1 parent 125bd1d commit 7c81754
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,15 @@ setMethod("plotMatrix", "HiCExperiment", function(
)
}
if (caption & is.null(tracks)) {
f <- fileName(x)
if (!is.null(compare.to)) {
f <- paste0(fileName(x), ' | ', fileName(compare.to))
print(f)
}
p <- p + ggplot2::labs(
caption = paste(
sep = '\n',
paste0('file: ', fileName(x)),
paste0('file: ', f),
paste0('resolution: ', resolution(x)),
paste0('focus: ', focus(x)),
paste0('scores: ', use.scores),
Expand Down

0 comments on commit 7c81754

Please sign in to comment.