distrib: Function distrib

distribR Documentation

Function distrib

Description

Returns and plots a vetor's unweighted/weighted distribution.

Usage

distrib(
  dat,
  wei = NULL,
  kat = NULL,
  plot = T,
  plot.o = F,
  simplify = T,
  mar = NULL,
  width = NULL,
  height = NULL,
  main2 = "Boxplot",
  main1 = "",
  round = T,
  ...
)

Arguments

dat

Numeric vector.

wei

Numeric vector representing of the same length as dat. Represents the weight that is attributed to each element of dat.

kat

Factor of the same length as dat. Specifies subgroups of dat to summarize.

plot

Logical value specifying whether to plot the weighted data. Defaults to T.

plot.o

Logical value specifying whether to plot the original data. Defaults to F.

simplify

Logical value specifying whether to return simplified data. Defaults to T.

mar

Numeric vector specifying margins. Defaults to NULL.

width

Numeric value specifying the width of the plot. Defaults to NULL.

height

Numeric value specifying the width of the plot. Defaults to NULL.

Details

Returns and plots a vetor's unweighted/weighted distribution.

Examples

distrib(1:10)

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.