mf_distr: Plot a distribution

View source: R/mf_distr.R

mf_distrR Documentation

Plot a distribution

Description

This function displays a histogram, a box plot, a strip chart and a density curve on the same plot.

Usage

mf_distr(x, nbins, bw)

Arguments

x

a numeric variable

nbins

number of bins in the histogram

bw

bandwidth of the density curve

Value

The number of bins of the histogram and the bandwidth of the density curve are (invisibly) returned in a list.

Examples

(mf_distr(rnorm(1000)))
mf_distr(rbeta(1000, .6, 7))
mf_distr(rbeta(1000, 5, .6))

mapsf documentation built on Nov. 21, 2023, 5:09 p.m.