2 | 0 |
deleted file mode 100644 |
... | ... |
@@ -1,46 +0,0 @@ |
1 |
-# Workflow derived from https://github.com/r-lib/actions/tree/master/examples |
|
2 |
-# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
|
3 |
-on: |
|
4 |
- push: |
|
5 |
- branches: [main, master] |
|
6 |
- pull_request: |
|
7 |
- branches: [main, master] |
|
8 |
- |
|
9 |
-name: R-CMD-check |
|
10 |
- |
|
11 |
-jobs: |
|
12 |
- R-CMD-check: |
|
13 |
- runs-on: ${{ matrix.config.os }} |
|
14 |
- |
|
15 |
- name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
|
16 |
- |
|
17 |
- strategy: |
|
18 |
- fail-fast: false |
|
19 |
- matrix: |
|
20 |
- config: |
|
21 |
- - {os: macOS-latest, r: 'release'} |
|
22 |
- - {os: windows-latest, r: 'release'} |
|
23 |
- - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
|
24 |
- - {os: ubuntu-latest, r: 'release'} |
|
25 |
- - {os: ubuntu-latest, r: 'oldrel-1'} |
|
26 |
- |
|
27 |
- env: |
|
28 |
- GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
|
29 |
- R_KEEP_PKG_SOURCE: yes |
|
30 |
- |
|
31 |
- steps: |
|
32 |
- - uses: actions/checkout@v2 |
|
33 |
- |
|
34 |
- - uses: r-lib/actions/setup-pandoc@v1 |
|
35 |
- |
|
36 |
- - uses: r-lib/actions/setup-r@v1 |
|
37 |
- with: |
|
38 |
- r-version: ${{ matrix.config.r }} |
|
39 |
- http-user-agent: ${{ matrix.config.http-user-agent }} |
|
40 |
- use-public-rspm: true |
|
41 |
- |
|
42 |
- - uses: r-lib/actions/setup-r-dependencies@v1 |
|
43 |
- with: |
|
44 |
- extra-packages: rcmdcheck |
|
45 |
- |
|
46 |
- - uses: r-lib/actions/check-r-package@v1 |
... | ... |
@@ -120,7 +120,6 @@ poplin_biplot.default <- function(x, y, comp = c(1, 2), group, |
120 | 120 |
y$y_adj <- y[, names(y)[2]] * arrow_label_ext |
121 | 121 |
p <- p + geom_text( |
122 | 122 |
inherit.aes = FALSE, |
123 |
- ## data = y, aes(x = x_adj, y = y_adj, label = label), |
|
124 | 123 |
data = y, aes(x = !!quote(x_adj), y = !!quote(y_adj), |
125 | 124 |
label = label), |
126 | 125 |
col = arrow_label_col, size = arrow_label_size |
... | ... |
@@ -139,6 +138,7 @@ poplin_biplot.poplin.pca <- function(x, comp = c(1, 2), group, |
139 | 138 |
comp <- sort(comp) |
140 | 139 |
n <- nrow(x) |
141 | 140 |
lam <- attr(x, "sdev")[comp] * sqrt(n) |
141 |
+ ## Consider Scaling factor |
|
142 | 142 |
## if (scale < 0 || scale > 1) |
143 | 143 |
## warning("'scale' is outside [0, 1]") |
144 | 144 |
## if (scale != 0) |
... | ... |
@@ -182,12 +182,8 @@ poplin_biplot.poplin <- function(x, xin, comp = c(1, 2), group, |
182 | 182 |
stop("rownames of 'poplin_reduced(x, xin)' ", |
183 | 183 |
"'must be non-NULL if label = TRUE.") |
184 | 184 |
} |
185 |
+ if (missing(group) && inherits(m, "poplin.plsda")) { |
|
186 |
+ group <- attr(m, "Y.observed") |
|
187 |
+ } |
|
185 | 188 |
poplin_biplot(m, comp = comp, group = group, label = label, ...) |
186 |
- ## if (inherits(m, "poplin.pca")) { |
|
187 |
- ## poplin_biplot.poplin.pca(m, comp = comp, ...) |
|
188 |
- ## } else if (inherits(m, "poplin.plsda")) { |
|
189 |
- ## poplin_biplot.poplin.plsda(m, comp = comp, ...) |
|
190 |
- ## } else { |
|
191 |
- ## poplin_biplot.default(m, comp = comp, ...) |
|
192 |
- ## } |
|
193 | 189 |
} |