Description Usage Arguments Value Author(s) References Examples
Generates a random simulation of the butterfly data set with a given number of points.
1 | Butterfly(N=10000)
|
N |
The number of points to be generated (by default: |
A N x 9 data.frame
. The first eight columns are the input variables,
and the last one is the output (or target) variable Y.
Jean Golay jeangolay@gmail.com
J. Golay, M. Leuenberger and M. Kanevski (2016). Feature selection for regression problems based on the Morisita estimator of intrinsic dimension, Pattern Recognition 70:126–138.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | bf <- Butterfly(1000)
## Not run:
require(colorRamps)
require(rgl)
c <- cut(bf$Y,breaks=64)
cols <- matlab.like(64)[as.numeric(c)]
plot3d(bf$X1,bf$X2,bf$Y,col=cols,radius=0.10,type="s",
xlab="",ylab="",zlab="",box=F)
axes3d(lwd=3,cex.axis=3)
grid3d(c("x+","y-","z"),col="black",lwd=1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.