find_mode: Mode estimation of a continuous variable

View source: R/find_mode.R

find_modeR Documentation

Mode estimation of a continuous variable

Description

Kernel density estimation of modes of a continuous variable.

Usage

find_mode(x, xlab = NULL, main = "", by = NULL, bin = 20, plot = TRUE)

Arguments

x

a vector of values for which the histogram is desired.

xlab

a label for the x axis, defaults to a description of x.

main

a main title for the plot, see also title.

by

increment of the bins i.e. the width of bins.

bin

the number of bins for the histogram.

plot

logical for ploting the histogram.

Value

Data frame with modes values and densities.


jdreyf/jdcbioinfo documentation built on April 15, 2024, 6:37 p.m.