show_seq_logo.Rd
Show Copy Number Sequence Logos
show_seq_logo( x, method = c("prob", "bits"), simple_version = FALSE, ncol = NULL, nrow = NULL, recode = FALSE, indicator = NULL, ... )
x | a character vector of sequences or named list of sequences. All sequences must have same width. |
---|---|
method | Height method, can be one of "bits" or "probability" (default: "bits") |
simple_version | if |
ncol | Number of columns, works only when |
nrow | Number of rows, same as |
recode | if |
indicator | a named vector (like a dictory) to change letters one to one in the plot. |
... | Additional arguments passed to |
a ggplot
object
p1 <- show_seq_logo(sapply(split(LETTERS[1:24], 1:4), function(x) paste0(x, collapse = ""))) p1 p2 <- show_seq_logo(sapply(split(LETTERS[1:24], 1:4), function(x) paste0(x, collapse = "")), recode = TRUE ) p2 p3 <- show_seq_logo(sapply(split(LETTERS[1:6], 1:2), function(x) paste0(x, collapse = "")), simple_version = TRUE )