plot_seq_length_distribution {AnimalSequences}R Documentation

Plot the Distribution of Sequence Lengths

Description

This function plots the distribution of the lengths of sequences of elements, where each sequence is split by spaces. The plot includes a histogram and a vertical line indicating the mean length.

Usage

plot_seq_length_distribution(sequences)

Arguments

sequences

A character vector where each element is a sequence of elements separated by spaces.

Value

A 'ggplot' object showing the distribution of sequence lengths.

Examples

sequences <- c('hello world', 'hello world hello', 'hello world hello world')
plot_seq_length_distribution(sequences)

[Package AnimalSequences version 0.2.0 Index]