rows.cntr.scatter: Scatterplot for row categories contribution to dimensions

Description Usage Arguments Examples

View source: R/rows_cntr_scatter.R

Description

This function allows to plot a scatterplot of the contribution of row categories to two selected dimensions. Two references lines (in RED) indicate the threshold above which the contribution can be considered important for the determination of the dimensions. A diagonal line is a visual aid to eyeball whether a category is actually contributing more (in relative terms) to either of the two dimensions. The row categories' labels are coupled with + or - symbols within round brackets indicating to which side of the two selected dimensions the contribution values that can be read off from the chart are actually referring. The first symbol (i.e., the one to the left), either + or -, refers to the first of the selected dimensions (i.e., the one reported on the x-axis). The second symbol (i.e., the one to the right) refers to the second of the selected dimensions (i.e., the one reported on the y-axis).

Usage

1
rows.cntr.scatter(data, x = 1, y = 2, filter = FALSE, cex.labls = 3)

Arguments

data:

name of the dataset (must be in dataframe format).

x:

first dimension for which the contributions are reported (x=1 by default).

y:

second dimension for which the contributions are reported (y=2 by default).

filter:

filter the categories in order to only display those who have a major contribution to the definition of the selected dimensions.

cex.labls:

adjust the size of the categories' labels

Examples

1
2
data(greenacre_data) #load the sample dataset
rows.cntr.scatter(greenacre_data,1,2) #Plot the scatterplot of the row categories contribution to dimensions 1&2.

gianmarcoalberti/CAinterprTools documentation built on May 31, 2018, 6:59 a.m.