Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

correlationPlotter

correlationPlotter


Description

Computes and plots a correlation circle (used in multivariate analyses). Correlation is computed between measured items and components (factors, dimensions, principal axes, etc...).

Usage

correlationPlotter(data_matrix, factor_scores, x_axis = 1, y_axis = 2, 
  col = NULL, pch = NULL, xlab = "", ylab = "", main = "", 
	axis.lwd = 3, circle.lwd = 3, circle.col = "#00000040", 
	asp = 1, dev.new = TRUE)

Arguments

data_matrix

A set of data (i.e., original measures and observations)

factor_scores

One set of factor scores that were computed from the original data matrix.

x_axis

Which axis is the x-axis? Default is 1.

y_axis

Which axis is the y-axis? Default is 2.

col

A single-column matrix of colors for each data point.

pch

A single-column matrix of pch for each data point. Indicates which point style to use for each item. See par.

xlab

A label to be placed along the x-axis.

ylab

A label to be placed along the y-axis.

main

A title to be placed at the top of the graph.

axis.lwd

numeric. Line width for the axes.

circle.lwd

numeric. Line width for the circle.

circle.col

color for the circle

asp

numeric. Aspect ratio (see asp in par).

dev.new

boolean. If TRUE, dev.new is called internally to create new device. If FALSE, a device must already be open.

Author(s)

Derek Beaton


prettyGraphs

Publication-Quality Graphics

v2.1.6
GPL-2
Authors
Derek Beaton
Initial release
2018-12-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.