Skip to contents

Plot the Frequency Distribution of States

Usage

plot_frequencies(x, ...)

# S3 method for class 'tna'
plot_frequencies(x, width = 0.7, hjust = 1.2, show_label = TRUE, colors, ...)

Arguments

x

A tna object created from sequence data.

...

Ignored.

width

A numeric value for the Width of the bars. Default is 0.7,

hjust

A numeric value for the horizontal adjustment of the labels. Default is 1.2.

show_label

A logical value indicating whether to show a label with the frequency counts. Default is TRUE.

colors

A character vector of colors to be used in the plot (one per label) or a single color.

Value

A ggplot object.

Examples

model <- tna(group_regulation)
plot_frequencies(model)

plot_frequencies(model, width =  0.5, colors = "pink")