Learn R Programming

fdm2id (version 0.9.5)

distplot: Plot a k-distance graphic

Description

Plot the distance to the k's nearest neighbours of each object in decreasing order. Mostly used to determine the eps parameter for the dbscan function.

Usage

distplot(k, d, h = -1)

Arguments

k

The k parameter.

d

The dataset (matrix or data.frame).

h

The y-coordinate at which a horizontal line should be drawn.

See Also

DBSCAN, dbscan

Examples

Run this code
# NOT RUN {
require (datasets)
data (iris)
distplot (5, iris [, -5], h = .65)
# }

Run the code above in your browser using DataLab