plotCategorial {clusterSim} | R Documentation |
Plot categorial data on a scatterplot matrix
Description
Plot categorial data on a scatterplot matrix (optionally with clusters)
Usage
plotCategorial(x, pairsofVar=NULL, cl=NULL, clColors=NULL,...)
Arguments
x |
data matrix (rows correspond to observations and columns correspond to variables) |
pairsofVar |
pairs of variables - all variables ( |
cl |
cluster membership vector |
clColors |
The colors of clusters. The colors are given arbitrary ( |
... |
Arguments to be passed to methods, such as graphical parameters (see |
Author(s)
Marek Walesiak marek.walesiak@ue.wroc.pl, Andrzej Dudek andrzej.dudek@ue.wroc.pl
Department of Econometrics and Computer Science, University of Economics, Wroclaw, Poland
See Also
Examples
# Example 1
library(clusterSim)
data(data_ordinal)
plotCategorial(data_ordinal, pairsofVar=c(1,3,4,9), cl=NULL,
clColors = NULL)
# Example 2
library(clusterSim)
grnd <- cluster.Gen(50,model=5,dataType="o",numCategories=5)
plotCategorial(grnd$data, pairsofVar=NULL, cl=grnd$clusters,
clColors=TRUE)
# Example 3
library(clusterSim)
grnd<-cluster.Gen(50,model=4,dataType="o",numCategories=7, numNoisyVar=2)
plotCategorial(grnd$data, pairsofVar=NULL, cl=grnd$clusters,
clColors = c("red","blue","green"))
[Package clusterSim version 0.51-4 Index]