View source: R/biPlot.default.R
biPlot.default | R Documentation |
Produces a biplot, which is a plot of two different types of data on the same graph.
## Default S3 method: biPlot(x, y, separate.axes = TRUE, xPlot = list(name = "observations", what = "points", type = "solid", width = "standard", symbol = "circle", filled = TRUE, size = 0.05, color = "black"), yPlot = list(name = "variables", width = "color", size = 0.2, color = "darkblue", symbol = "arrow", filled = FALSE), xPlotLabels = list(labels = "rownames", dir = "NE", size = 8, offset = 0.35), yPlotLabels = list(labels = "colnames", dir = "Auto", size = 8, offset = 0.35, color = "darkblue"), ylabels = 5, xlabels = 5, ylabels2 = 5, xlabels2 = 5, xtitle = "", ytitle = "", xtitle2 = "", ytitle2 = "", range.factor = 1.25, caption = "", margin = c(NA, NA, NA, NA), ...)
x |
a 2-column matrix of x- (column 1) and y- (column 2) coordinates for observations or equivalent. |
y |
a 2-column matrix of x- (column 1) and y- (column 2) coordinates for variables or equivalent. |
separate.axes |
logical, if |
xPlot |
control information to plot the |
yPlot |
control information to plot the |
xPlotLabels |
control information for the |
yPlotLabels |
control information for the |
ylabels |
set y-axis labels for |
xlabels |
set x-axis labels for |
ylabels2 |
set y-axis labels for |
xlabels2 |
set x-axis labels for |
xtitle |
x-axis title (also called x-axis caption) for |
ytitle |
y-axis title (also called y-axis caption) for |
xtitle2 |
x-axis title (also called x-axis caption) for |
ytitle2 |
y-axis title (also called y-axis caption) for |
range.factor |
a numeric factor by which to expand the axis ranges so that labels can be drawn. |
caption |
the figure caption. |
margin |
set the plot area margins, in units of lines of text. Generally
all NA or the output from |
... |
not used, required for other methods. |
The xPlotLabels
and yPlotLabels
arguments must be tagged lists
with these components:
the labels. For
xPlotLabels
, "rownames" means use the row names from x
to
generate the labels. For yPlotLabels
, "colnames" means use the column
names from y
to generate the labels. Otherwise a character vector of
the labels.
the direction the label text is placed from the object.
the size of the label text.
the distance the labels is placed relative to the object.
the color of the label text.
Information about the graph
A call should be made to setPage
to set up the graphics
environment before calling biPlot
.
setPage
, biPlot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.