Last data update: 2014.03.03

R: One dimensional data with two main clusters
onedR Documentation

One dimensional data with two main clusters

Description

A one dimensional data and its hierarchical modal clustering with 2 main clusters

Usage

data(oned)
data(oned.hmac)

Format

oned is a one dimensional data with 2 main clusters and several subclusters. oned.hmac is an object of class 'hmac' obtained from applying phmac on disc2d and disc3d respectively

Author(s)

Surajit Ray and Yansong Cheng

References

Li. J, Ray. S, Lindsay. B. G, "A nonparametric statistical approach to clustering via mode identification," Journal of Machine Learning Research , 8(8):1687-1723, 2007.

Lindsay, B.G., Markatou M., Ray, S., Yang, K., Chen, S.C. "Quadratic distances on probabilities: the foundations," The Annals of Statistics Vol. 36, No. 2, page 983–1006, 2008.

Examples

data(oned)
hist(oned,col="lavender",n=15)
data(oned.hmac)
plot(oned.hmac)
plot(oned.hmac,n.clust=2)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Modalclust)
Loading required package: mvtnorm
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: class
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Modalclust/oned.Rd_%03d_medium.png", width=480, height=480)
> ### Name: oned
> ### Title: One dimensional data with two main clusters
> ### Aliases: oned oned.hmac
> ### Keywords: data
> 
> ### ** Examples
> 
> data(oned)
> hist(oned,col="lavender",n=15)
> data(oned.hmac)
> plot(oned.hmac)

> plot(oned.hmac,n.clust=2)
The level at which there are 2 clusters is 5 

> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>