Skip to contents

Core function to generate two-table analysis plots.

Usage

TTAplotInference(
  res,
  method = "PLSC",
  tab1,
  tab2,
  center1 = TRUE,
  scale1 = "ss1",
  center2 = TRUE,
  scale2 = "ss1",
  leDim = c(1, 1),
  leDim4CirCor = c(1, 2),
  color.obs = NULL,
  color.tab = NULL,
  title.plot = "Results",
  alpha.points = 0.25,
  DESIGN = NULL,
  sigbar.p = FALSE,
  sigbar.q = FALSE,
  tab1.name = "J-set",
  tab2.name = "K-set",
  TI = FALSE,
  mean.cex = 3,
  mean.textcex = 3,
  only.mean = FALSE,
  only.ind = FALSE,
  score.constraints = NULL,
  mean.constraints = NULL,
  scale.mean.constraints = 3,
  save2pptx = FALSE,
  title4pptx = "TTA Inference Results"
)

Arguments

res

the result of a two-table analysis;

method

the method used; 'PLSC' or 'CCA' (default to 'PLSC');

tab1

the first data table;

tab2

the second data table;

center1

how the variables in tab1 is centered (default to TRUE);

scale1

how the variables in tab1 is centered (default to "ss1");

center2

how the variables in tab1 is centered (default to TRUE);

scale2

how the variables in tab1 is centered (default to "ss1");

leDim

vector containning the dimensions to be plotted;

leDim4CirCor

vector containning the dimensions to be correlated with the latent variables for the circle of correlation plot;

color.obs

list containing the colors for the observations;

color.tab

list containing the colors for the two-tables;

title.plot

plot of the title;

alpha.points

opacity for points;

DESIGN

design for the observations;

sigbar.p

whether to plot only significant bars or not for the contribution plot of the first block (default to FALSE);

sigbar.q

whether to plot only significant bars or not for the contribution plot of the second block (default to FALSE);

tab1.name

the name of the first table (default to "1");

tab2.name

the name of the second table (default to "2");

TI

whether to plot toerance intervals (default to FALSE);

mean.cex

size expansion for the mean symbols;

mean.textcex

size expansion for the mean symbols;

only.mean

whether to plot only means;

only.ind

whether to plot only observations on the latent variable plot (default to FALSE);

score.constraints

constraints on the plot (use with care);

mean.constraints

constraints on the plot (use with care);

scale.mean.constraints

constraints on the plot (use with care).

save2pptx

Default: FALSE

title4pptx

Title of the PPTX, Default: 'TTA Results'.

Value

a list of plots

Examples

if (FALSE) {
  # An example will be added very soon
}