Learn R Programming

tna (version 1.1.0)

plot.tna_sequence_comparison: Plot a Sequence Comparison

Description

Plot a Sequence Comparison

Usage

# S3 method for tna_sequence_comparison
plot(
  x,
  n = 10,
  legend = TRUE,
  cells = TRUE,
  text_color = "white",
  digits = 2L,
  ...
)

Value

A ggplot object.

Arguments

x

A tna_sequence_comparison object.

n

An integer giving the number of patterns to plot. The default is 10.

legend

A logical value indicating whether to show the color scale legend. The default is TRUE.

cells

A logical value indicating whether to display the numeric values in each cell. The default is TRUE.

text_color

A character string specifying the text color to use for the cell values. The default is "white".

digits

An integer specifying 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

Run this code
group <- c(rep("High", 1000), rep("Low", 1000))
comp <- compare_sequences(group_regulation, group)
plot(comp)

Run the code above in your browser using DataLab