Show classified components ("Wang" ("W") method) for copy number data.
show_cn_components(
parameters,
method = "Wang",
show_weights = TRUE,
log_y = FALSE,
return_plotlist = FALSE,
base_size = 12,
nrow = 2,
align = "hv",
...
)
a data.frame
contain parameter components, obtain this
from sig_tally function.
method for feature classification, can be one of "Wang" ("W"), "S" (for method described in Steele et al. 2019), "X" (for method described in Tao et al. 2023).
default is TRUE
, show weights for each component.
Only used when method is "Macintyre".
logical, if TRUE
, show log10
based y axis, only
works for input from "Wang" ("W") method.
if TRUE
, return a list of ggplot objects but a combined plot.
overall font size.
(optional) Number of rows in the plot grid.
(optional) Specifies whether graphs in the grid should be horizontally ("h") or vertically ("v") aligned. Options are "none" (default), "hv" (align in both directions), "h", and "v".
other options pass to plot_grid
function of cowplot package.
a ggplot
object