plot_frequencies {tna}R Documentation

Plot the Frequency Distribution of States

Description

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.

See Also

Basic functions build_model(), hist.group_tna(), hist.tna(), plot.group_tna(), plot.tna(), plot_frequencies.group_tna(), plot_mosaic(), plot_mosaic.group_tna(), plot_mosaic.tna_data(), print.group_tna(), print.summary.group_tna(), print.summary.tna(), print.tna(), summary.group_tna(), summary.tna(), tna-package

Examples

model <- tna(group_regulation)
plot_frequencies(model)
plot_frequencies(model, width =  0.5, colors = "pink")


[Package tna version 1.0.0 Index]