generate_ksd: Generate Kernel Density Estimates (KDE) for Ks Distribution

View source: R/ksv.R

generate_ksdR Documentation

Generate Kernel Density Estimates (KDE) for Ks Distribution

Description

This function generates Kernel Density Estimates (KDE) for the Ks (synonymous substitution rates) distribution.

Usage

generate_ksd(ks_df, bin_width = 0.01, maxK = 5)

Arguments

ks_df

A data frame containing Ks values.

bin_width

The width of each bin for KDE calculation.

maxK

The maximum Ks value for the distribution.

Value

A list containing the following components:

  • Ks: A numeric vector representing the KDE values.

  • bin_width: The width of each bin used for KDE calculation.

  • maxK: The maximum Ks value for the distribution.


shinyWGD documentation built on April 4, 2025, 2:28 a.m.