Learn R Programming

CJIVE (version 0.1.0)

gg.norm.plot: Function for plotting chordal norms between estimated and true subspaces within the simulation study described in CJIVE manuscript

Description

Graphically displays the center and spread of chordal norms for joint/individual score/loading subspaces

Usage

gg.norm.plot(
  norm.dat,
  cols,
  show.legend = FALSE,
  text.size,
  lty = 1,
  y.max = 1,
  x.lab.angle = 70
)

Value

graphical display (via ggplot2)

Arguments

norm.dat

data frame with at least the 5 following variables: Norm - the value of the norm for a particular subspace; Type - the subspace for which the norm is given (i.e., joint/individual score/loading for dataset X1 or X2 (except for joint scores)) Method - the method by which the subspace was estimated, e.g. CJIVE, AJIVE, R.JIVE JVE_1 and JVE_2 - labels describing the proportion of joint variation explained in each dataset (and typically the number of variables in dataset X2)

cols

a vector of colors, must have length equal to the number of methods used in the simulation

show.legend

logical (TRUE/FALSE) for whether a legend should be included in the plot. Default is FALSE

text.size

numeric value for the font size

lty

linetype (see ggplot2). Default = 1

y.max

maximum value for the horizontal axis of the plot

x.lab.angle

angle at which x-axis labels are tilted