View source: R/show_seq_shape.R
show_seq_shape | R Documentation |
Show Copy Number Sequence Shapes
show_seq_shape( x, map = NULL, simple_version = FALSE, line_size_scale = 3, x_lab = ifelse(simple_version, "Assumed equal length", "Estimated segment length"), y_lab = "Copy number", nrow = NULL, ncol = NULL, scales = "free_x" )
x |
a character vector of sequences or named list of sequences. All sequences must have same width. |
map |
default is |
simple_version |
if |
line_size_scale |
the scale size for line width. |
x_lab |
x lab. |
y_lab |
y lab. |
nrow |
Number of rows, same as |
ncol |
Number of columns, works only when |
scales |
Should scales be fixed ( |
a ggplot
object.
p <- show_seq_shape(c("ADGHK")) p x <- list(a = c("ABCDE", "AXFDP"), b = c("KKDFH", "GKDFM")) p2 <- show_seq_shape(x) p2 p3 <- show_seq_shape(c("ABCD"), simple_version = TRUE) p3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.