Learn R Programming

eDNAfuns (version 0.1.0)

plot_seq_len_hist: Plot sequence length distribution

Description

This function takes a tibble produced by `fasta_reader()` or `fastq_reader()` and plots the distribution of sequence lengths.

Usage

plot_seq_len_hist(Hash_tibble, length_col, binwidth = 1, label_interval = 5)

Value

A ggplot object.

Arguments

Hash_tibble

A tibble containing a numeric column with sequence lengths.

length_col

The column of `Hash_tibble` containing sequence lengths (unquoted).

binwidth

Width of histogram bins. Default = 1.

label_interval

Interval for x-axis labels. Default = 5.

Examples

Run this code
data("example_hashes")
plot_seq_len_hist(example_hashes, seq_len)

Run the code above in your browser using DataLab