caScatter: Scatterplot visualization facility

Description Usage Arguments Examples

Description

This function allows to get different types of CA scatterplots. It is just a wrapper for functions from the 'ca' and 'FactoMineR' packages.

Usage

1
caScatter(data, x = 1, y = 2, type)

Arguments

data:

name of the contingency table (must be in dataframe format).

x:

first dimension to be plotted (x=1 by default).

y:

second dimensions to be plotted (y=2 by default).

type:

type of scatterplot to be returned (see examples).

Examples

1
2
3
4
5
data(greenacre_data)
caScatter(greenacre_data, 1, 2, type=1) # symmetric scatterplot for rows and columns
caScatter(greenacre_data, 1, 2, type=2) # Standard Biplot; 2 plots are returned: one with row-categories vectors displayed, one for columns categories vectors. 
caScatter(greenacre_data, 1, 2, type=3) # scaterplot of row categories with groupings shown by different colors; scatterplot for column categories is also returned
caSscatter(greenacre_data, 1, 2, type=4) # 3D scatterplot with cluster tree for row categories; scatterplot for column categories is also returned.

gianmarcoalberti/CAinterprTools documentation built on May 17, 2019, 4:18 a.m.