View source: R/plot_sequence_length_distributions.R
plot_seq_length_distribution | R Documentation |
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.
plot_seq_length_distribution(sequences)
sequences |
A character vector where each element is a sequence of elements separated by spaces. |
A 'ggplot' object showing the distribution of sequence lengths.
sequences <- c('hello world', 'hello world hello', 'hello world hello world')
plot_seq_length_distribution(sequences)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.