- Signature
a Signature
object obtained either from sig_extract or sig_auto_extract,
or just a raw signature matrix with row representing components (motifs) and column
representing signatures (column names must start with 'Sig').
- mode
signature type for plotting, now supports 'copynumber', 'SBS',
'DBS', 'ID' and 'RS' (genome rearrangement signature).
- method
method for copy number feature classification in sig_tally,
can be one of "Wang" ("W"), "S".
- by_context
for specific use.
- normalize
one of 'row', 'column', 'raw' and "feature", for row normalization (signature),
column normalization (component), raw data, row normalization by feature, respectively.
Of note, 'feature' only works when the mode is 'copynumber'.
- y_tr
a function (e.g. log10
) to transform y axis before plotting.
- filters
a pattern used to select components to plot.
- feature_setting
a data.frame
used for classification.
Only used when method is "Wang" ("W").
Default is CN.features. Users can also set custom input with "feature",
"min" and "max" columns available. Valid features can be printed by
unique(CN.features$feature)
.
- style
plot style, one of 'default' and 'cosmic', works when
parameter set_gradient_color
is FALSE
.
- palette
palette used to plot when set_gradient_color
is FALSE
,
default use a built-in palette according to parameter style
.
- set_gradient_color
default is FALSE
, if TRUE
, use gradient colors
to fill bars.
- free_space
default is 'free_x'. If "fixed", all panels have the same size.
If "free_y" their height will be proportional to the length of the y scale;
if "free_x" their width will be proportional to the length of the x scale;
or if "free" both height and width will vary.
This setting has no effect unless the appropriate scales also vary.
- rm_panel_border
default is TRUE
for style 'cosmic',
remove panel border to keep plot tight.
- rm_grid_line
default is FALSE
, if TRUE
, remove grid lines of plot.
- rm_axis_text
default is FALSE
, if TRUE
, remove component texts.
This is useful when multiple signature profiles are plotted together.
- bar_border_color
the color of bar border.
- bar_width
bar width. By default, set to 70% of the resolution of the
data.
- paint_axis_text
if TRUE
, color on text of x axis.
- x_label_angle
font angle for x label.
- x_label_vjust
font vjust for x label.
- x_label_hjust
font hjust for x label.
- x_lab
x axis lab.
- y_lab
y axis lab.
- y_limits
limits to expand in y axis. e.g., 0.2
, c(0, 0.3)
.
- params
params data.frame
of components, obtained from sig_tally.
- show_cv
default is FALSE
, if TRUE
, show coefficient of variation when
params
is not NULL
.
- params_label_size
font size for params label.
- params_label_angle
font angle for params label.
- y_expand
y expand height for plotting params of copy number signatures.
- digits
digits for plotting params of copy number signatures.
- base_size
overall font size.
- font_scale
a number used to set font scale.
- sig_names
subset signatures or set name of signatures, can be a character vector.
Default is NULL
, prefix 'Sig' plus number is used.
- sig_orders
set order of signatures, can be a character vector.
Default is NULL
, the signatures are ordered by alphabetical order.
If an integer vector set, only specified signatures are plotted.
- check_sig_names
if TRUE
, check signature names when input is
a matrix, i.e., all signatures (colnames) must start with 'Sig'.