epGraphs function

epGraphs: ExPosition plotting function

epGraphs: ExPosition plotting function

ExPosition plotting function which is an interface to prettyGraphs.

epGraphs(res, x_axis = 1, y_axis = 2, epPlotInfo = NULL, DESIGN=NULL, fi.col = NULL, fi.pch = NULL, fj.col = NULL, fj.pch = NULL, col.offset = NULL, constraints = NULL, xlab = NULL, ylab = NULL, main = NULL, contributionPlots = TRUE, correlationPlotter = TRUE, graphs = TRUE)

Arguments

  • res: results from ExPosition
  • x_axis: which component should be on the x axis?
  • y_axis: which component should be on the y axis?
  • epPlotInfo: A list ($Plotting.Data) from epGraphs or ExPosition.
  • DESIGN: A design matrix to apply colors (by pallete selection) to row items
  • fi.col: A matrix of colors for the row items. If NULL, colors will be selected.
  • fi.pch: A matrix of pch values for the row items. If NULL, pch values are all 21.
  • fj.col: A matrix of colors for the column items. If NULL, colors will be selected.
  • fj.pch: A matrix of pch values for the column items. If NULL, pch values are all 21.
  • col.offset: A numeric offset value. Is passed to createColorVectorsByDesign.
  • constraints: Plot constraints as returned from prettyPlot. If NULL, constraints are selected.
  • xlab: x axis label
  • ylab: y axis label
  • main: main label for the graph window
  • contributionPlots: a boolean. If TRUE (default), contribution bar plots will be created.
  • correlationPlotter: a boolean. If TRUE (default), a correlation circle plot will be created. Applies to PCA family of methods (CA is excluded for now).
  • graphs: a boolean. If TRUE, graphs are created. If FALSE, only data associated to plotting (e.g., constraints, colors) are returned.

Returns

The following items are bundled inside of $Plotting.Data:

  • **fi.col:thecolorsthatareassociatedtotherowitems(fi.col**: the colors that are associated to the row items (fi).

  • **fi.pch:thepchvaluesassociatedtotherowitems(fi.pch**: the pch values associated to the row items (fi).

  • **fj.col:thecolorsthatareassociatedtothecolumnitems(fj.col**: the colors that are associated to the column items (fj).

  • **fj.pch:thepchvaluesassociatedtothecolumnitems(fj.pch**: the pch values associated to the column items (fj).

  • $constraints: axis constraints for the plots (determines end points of the plots).

Details

epGraphs is an interface between ExPosition and prettyGraphs.

Examples

#this is for ExPosition's iris data data(ep.iris) pca.iris.res <- epPCA(ep.iris$data) #this will put plotting data into a new variable. epGraphs.2.and.3 <- epGraphs(pca.iris.res,x_axis=2,y_axis=3)

See Also

prettyGraphs

Author(s)

Derek Beaton

  • Maintainer: Derek Beaton
  • License: GPL-2
  • Last published: 2025-04-13

Useful links