Learn R Programming

ThreeWay (version 1.1.3)

jointplotgen: Jointplots

Description

Program for producing jointplots in general.

Usage

jointplotgen(K, A, B, C, fixmode, fixunit, laba, labb, labc)

Arguments

K
Matricized core array (frontal slices)
A
Component matrix for the A-mode
B
Component matrix for the B-mode
C
Component matrix for the C-mode
fixmode
Mode for which one unit is to be chosen (1 for A-mode, 2 for B-mode, 3 for C-mode)
fixunit
Number of component for which joint plot is desired
laba
Vector of length n containing the labels of the A-mode entities
labb
Vector of length m containing the labels of the B-mode entities
labc
Vector of length p containing the labels of the C-mode entities

Value

fit
Percentage of info for component at hand, explained by two-dimensional plot

References

P.M. Kroonenberg (2008). Applied Multiway Data Analysis. Wiley, New Jersey.

Examples

Run this code
data(Bus)
# labels for Bus data
laba <- rownames(Bus)
labb <- substr(colnames(Bus)[1:5], 1, 1)
labc <- substr(colnames(Bus)[seq(1,ncol(Bus),5)], 3, 8)
# <- T3 solution
BusT3 <- T3funcrep(Bus, 7, 5, 37, 2, 2, 2, 0, 1e-6)
# Joint plot for mode C and component 2
jointplotgen(BusT3$H, BusT3$A, BusT3$B, BusT3$C, 3, 2, laba, labb, labc)

Run the code above in your browser using DataLab