Learn R Programming

supc (version 0.2.6.2)

freq.poly: Plot the frequency polygon of pairwise distance

Description

Plot the frequency polygon of the pairwise distance.

Usage

freq.poly(x, ...)

Arguments

x

either dist object or matrix.

...

other parameters to be passed through to hist.

Value

an object of class "histogram" which is a list with components:

breaks

the \(n+1\) cell boundaries (= breaks if that was a vector). These are the nominal breaks, not with the boundary fuzz.

counts

\(n\) integers; for each cell, the number of x[] inside.

density

values \(\hat f(x_i)\), as estimated density values. If all(diff(breaks) == 1), they are the relative frequencies counts/n and in general satisfy \(\sum_i \hat f(x_i) (b_{i+1}-b_i) = 1\), where \(b_i\) = breaks[i].

mids

the \(n\) cell midpoints.

xname

a character string with the actual x argument name.

equidist

logical, indicating if the distances between breaks are all the same.