TExPosition plotting function which is an interface to
prettyGraphs
.
tepGraphs(
res,
x_axis = 1,
y_axis = 2,
tepPlotInfo = NULL,
DESIGN = NULL,
fi.col = NULL,
fi.pch = NULL,
fii.col = NULL,
fii.pch = NULL,
fj.col = NULL,
fj.pch = NULL,
col.offset = NULL,
constraints = NULL,
lv.constraints = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
lvPlots = TRUE,
lvAgainst = TRUE,
contributionPlots = TRUE,
correlationPlotter = TRUE,
showHulls = 1,
graphs = TRUE
)
The following items are bundled inside of $Plotting.Data:
the colors that are associated to the individuals (row items; $fii).
the pch values associated to the individuals (row items; $fii).
the colors that are associated to the groups ($fi).
the pch values associated to the groups ($fi).
the colors that are associated to the column items ($fj).
the pch values associated to the column items ($fj).
axis constraints for the plots (determines end points of the plots).
results from TExPosition
which component should be on the x axis?
which component should be on the y axis?
A list ($Plotting.Data
) from tepGraphs
or
TExPosition
.
A design matrix to apply colors (by pallete selection) to row items
A matrix of colors for the group items. If NULL, colors will be selected.
A matrix of pch values for the group items. If NULL, pch values are all 21.
A matrix of colors for the row items (observations). If NULL, colors will be selected.
A matrix of pch values for the row items (observations). If NULL, pch values are all 21.
A matrix of colors for the column items. If NULL, colors will be selected.
A matrix of pch values for the column items. If NULL, pch values are all 21.
A numeric offset value. Is passed to
createColorVectorsByDesign
.
Plot constraints as returned from
prettyPlot
. If NULL, constraints are selected.
Plot constraints for latent variables. If NULL, constraints are selected.
x axis label
y axis label
main label for the graph window
a boolean. If TRUE, latent variables (X, Y) are plotted. If FALSE, latent variables are not plotted.
a boolean. If TRUE, latent variables (X, Y) are plotted against each other. If FALSE, latent variables are plotted like factor scores.
a boolean. If TRUE (default), contribution bar plots will be created.
a boolean. If TRUE (default), a correlation circle plot will be created. Applies to PCA family of methods (CA is excluded for now).
a value between 0 and 1 to make a peeled hull at that percentage. All values outside of 0-1 will not plot any hulls.
a boolean. If TRUE, graphs are created. If FALSE, only data associated to plotting (e.g., constraints, colors) are returned.
Derek Beaton
tepGraphs is an interface between TExPosition
and
prettyGraphs
.
prettyGraphs
#this is for TExPosition's iris data
data(ep.iris)
bada.iris <- tepBADA(ep.iris$data,DESIGN=ep.iris$design,
make_design_nominal=FALSE,graphs=FALSE)
#there are only 2 components, not 3.
bada.iris.plotting.data <- tepGraphs(bada.iris,x_axis=1,y_axis=2)
Run the code above in your browser using DataLab