plot_seq_length_distribution: Plot the Distribution of Sequence Lengths

View source: R/plot_sequence_length_distributions.R

plot_seq_length_distributionR 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)

AnimalSequences documentation built on Sept. 30, 2024, 9:18 a.m.