ca.scatter: Scatterplot visualization facility

Description Usage Arguments Examples

View source: R/ca_scatter.r

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
ca.scatter(data, x = 1, y = 2, type)

Arguments

x,

y: the two dimension to be plotted (x=1 and y=2 by default).

data:

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

type:

type of scatterplot to be returned (see examples).

Examples

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

gianmarcoalberti/CAinterprTools_0.5 documentation built on May 14, 2017, 10:51 a.m.