-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathggbiplot.Rd
170 lines (120 loc) · 4.25 KB
/
ggbiplot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotlib.R
\name{ggbiplot}
\alias{ggbiplot}
\title{Draw \code{biplot} using \code{ggplot2}.}
\usage{
ggbiplot(
plot.data,
loadings.data = NULL,
colour = NULL,
size = NULL,
linetype = NULL,
alpha = NULL,
fill = NULL,
shape = NULL,
label = FALSE,
label.label = "rownames",
label.colour = colour,
label.alpha = NULL,
label.size = NULL,
label.angle = NULL,
label.family = NULL,
label.fontface = NULL,
label.lineheight = NULL,
label.hjust = NULL,
label.vjust = NULL,
label.repel = FALSE,
label.position = "identity",
loadings = FALSE,
loadings.arrow = grid::arrow(length = grid::unit(8, "points")),
loadings.colour = "#FF0000",
loadings.linewidth = 0.5,
loadings.label = FALSE,
loadings.label.label = "rownames",
loadings.label.colour = "#FF0000",
loadings.label.alpha = NULL,
loadings.label.size = NULL,
loadings.label.angle = NULL,
loadings.label.family = NULL,
loadings.label.fontface = NULL,
loadings.label.lineheight = NULL,
loadings.label.hjust = NULL,
loadings.label.vjust = NULL,
loadings.label.repel = FALSE,
label.show.legend = NA,
frame = FALSE,
frame.type = NULL,
frame.colour = colour,
frame.level = 0.95,
frame.alpha = 0.2,
xlim = c(NA, NA),
ylim = c(NA, NA),
log = "",
main = NULL,
xlab = NULL,
ylab = NULL,
asp = NULL,
...
)
}
\arguments{
\item{plot.data}{data.frame}
\item{loadings.data}{data.frame}
\item{colour}{colour}
\item{size}{size}
\item{linetype}{line type}
\item{alpha}{alpha}
\item{fill}{fill}
\item{shape}{shape}
\item{label}{Logical value whether to display data labels}
\item{label.label}{Column name used for label text}
\item{label.colour}{Colour for text labels}
\item{label.alpha}{Alpha for text labels}
\item{label.size}{Size for text labels}
\item{label.angle}{Angle for text labels}
\item{label.family}{Font family for text labels}
\item{label.fontface}{Fontface for text labels}
\item{label.lineheight}{Lineheight for text labels}
\item{label.hjust}{Horizontal adjustment for text labels}
\item{label.vjust}{Vertical adjustment for text labels}
\item{label.repel}{Logical flag indicating whether to use \code{ggrepel}, enabling this may take some time for plotting}
\item{label.position}{Character or a position function}
\item{loadings}{Logical value whether to display loadings arrows}
\item{loadings.arrow}{An arrow definition}
\item{loadings.colour}{Point colour for data}
\item{loadings.linewidth}{Segment linewidth for loadings}
\item{loadings.label}{Logical value whether to display loadings labels}
\item{loadings.label.label}{Column name used for loadings text labels}
\item{loadings.label.colour}{Colour for loadings text labels}
\item{loadings.label.alpha}{Alpha for loadings text labels}
\item{loadings.label.size}{Size for loadings text labels}
\item{loadings.label.angle}{Angle for loadings text labels}
\item{loadings.label.family}{Font family for loadings text labels}
\item{loadings.label.fontface}{Fontface for loadings text labels}
\item{loadings.label.lineheight}{Lineheight for loadings text labels}
\item{loadings.label.hjust}{Horizontal adjustment for loadings text labels}
\item{loadings.label.vjust}{Vertical adjustment for loadings text labels}
\item{loadings.label.repel}{Logical flag indicating whether to use \code{ggrepel} automatically}
\item{label.show.legend}{Logical value indicating whether to show the legend of text labels}
\item{frame}{Logical value whether to draw outliner convex / ellipse}
\item{frame.type}{Character specifying frame type.
'convex' or types supporeted by \code{ggplot2::stat_ellipse} can be used.}
\item{frame.colour}{Colour for frame}
\item{frame.level}{Passed for \code{ggplot2::stat_ellipse} 's level. Ignored in 'convex'.}
\item{frame.alpha}{Alpha for frame}
\item{xlim}{limits for x axis}
\item{ylim}{limits for y axis}
\item{log}{which variables to log transform ("x", "y", or "xy")}
\item{main}{character vector or expression for plot title}
\item{xlab}{character vector or expression for x axis label}
\item{ylab}{character vector or expression for y axis label}
\item{asp}{the y/x aspect ratio}
\item{...}{other arguments passed to methods}
}
\value{
ggplot
}
\description{
Draw \code{biplot} using \code{ggplot2}.
}