Description Usage Arguments Examples
This function returns the Correspondence Analysis scatterplot of column categories, with points' colour according to the clusters to which points belong. A tab delimited .txt file is also created (in the R working directory) containing the cluster membership for each colum category.
1 2 |
x, y: |
The dimensions to be plotted (1st and 2nd by default). |
data: |
Dataframe containing the contingency table to be analysed. |
bp: |
logical value (TRUE/FALSE). TRUE displays boxplots of column coordinates by cluster, in order to visually gauge the degree of separation between clusters. FALSE is default. |
varwidth: |
logical value (TRUE/FALSE). TRUE sets the width of the boxplots proportional to the groups size. This helps in eyeballing the size of the clusters being compared. FALSE is default. |
1 2 3 | data("perfect_seriation"): load the dataset 'perfect_seriation'
plot.clusters.cols (perfect_seriation,2,3): plot the Correspondence Analysis scatterplot of column categories (using the 'perfect_seriation' dataframe), displaying the 2 and 3 dimensions.
plot.clusters.cols (cemetery,1,2,bp=TRUE,varwidth=TRUE): plot the Correspondence Analysis scatterplot of column categories (using the 'cemetery' dataframe), displaying the 1 and 2 dimension. Boxplots of column coordinates (on the selected dimensions) by cluster are also displayed, with size proportional to the size of the clusters.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.