Description Usage Format See Also Examples
The data is taken from HSAUR3 package's household
data. We use
housing, service, and food variables and normalize them to be unit-norm so
that each observation is projected onto the 2-dimensional sphere. The data
consists of 20 males and 20 females and has been used for clustering
on the unit hypersphere.
1 |
a named list containing
an (n\times 3) data matrix whose rows are unit-norm.
a length-n factor for class label.
1 2 3 4 5 6 7 8 9 | ## Load the data
data(household, package="T4cluster")
## Visualize the data in pairs
opar <- par(no.readonly=TRUE)
scatterplot3d::scatterplot3d(household$data, color=rep(c("red","blue"), each=20),
pch=19, main="household expenditure on the 2-dimensional sphere",
xlim=c(0,1.2), ylim=c(0,1.2), zlim=c(0,1.2), angle=45)
par(opar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.