Visualize the differences in pattern counts by plotting the standardized residuals by pattern and group.
Usage
# S3 method for class 'tna_sequence_comparison'
plot(
x,
n = 10,
legend = TRUE,
cells = TRUE,
text_color = "white",
digits = 2L,
...
)Arguments
- x
A
tna_sequence_comparisonobject.- n
An
integergiving the number of patterns to plot. The default is10.- legend
A
logicalvalue indicating whether to show the color scale legend. The default isTRUE.- cells
A
logicalvalue indicating whether to display the numeric values in each cell. The default isTRUE.- text_color
A
characterstring specifying the text color to use for the cell values. The default is"white".- digits
An
integerspecifying the number of digits for the cell values.- ...
Not used.
See also
Model comparison functions
compare(),
compare.group_tna(),
compare_sequences(),
plot.tna_comparison(),
plot_compare(),
plot_compare.group_tna(),
print.tna_comparison(),
print.tna_sequence_comparison()
Examples
# A small subset without the permutation test
idx <- c(1:100, 1001:1100)
group <- rep(c("High", "Low"), each = 100)
comp <- compare_sequences(group_regulation[idx, ], group, test = FALSE)
plot(comp)
# \donttest{
idx <- c(1:500, 1001:1500)
group <- c(rep("High", 500), rep("Low", 500))
comp <- compare_sequences(group_regulation[idx, ], group)
plot(comp)
# }
