Browse code

Updated to include biplot.

Jaehyun Joo authored on 04/01/2022 03:56:00
Showing 1 changed files

... ...
@@ -238,7 +238,7 @@ either to a `poplin` object or a `matrix`.
238 238
 
239 239
 The `poplin_naplot()` helps to visually inspect missingness of the data.
240 240
 
241
-```{r naplot, fig.width = 8, fig.height = 8}
241
+```{r naplot, fig.width = 7, fig.height = 7}
242 242
 poplin_naplot(x = faahko_poplin, xin = "raw")
243 243
 ```
244 244
 
... ...
@@ -247,7 +247,7 @@ poplin_naplot(x = faahko_poplin, xin = "raw")
247 247
 The `poplin_corplot()` visualizes correlations between samples (or features) to
248 248
 quickly check the grouping structure in the data.
249 249
 
250
-```{r corplot, fig.width = 8, fig.height = 8}
250
+```{r corplot, fig.width = 7, fig.height = 7}
251 251
 poplin_corplot(x = faahko_poplin, xin = "knn_cyclic")
252 252
 ```
253 253
 
... ...
@@ -273,7 +273,7 @@ poplin_boxplot(faahko_poplin, xin = "knn_cyclic", group = group)
273 273
 The `poplin_scoreplot()` function visualizes the data onto a lower-dimensional
274 274
 space using the `poplin_reduce()` output.
275 275
 
276
-```{r poplin_scoreplot}
276
+```{r poplin_scoreplot, fig.width = 7, fig.height = 5}
277 277
 group <- colData(faahko_poplin)$sample_group
278 278
 
279 279
 ## PCA output
... ...
@@ -286,6 +286,21 @@ poplin_scoreplot(faahko_poplin, xin = "plsda", ellipse = TRUE,
286 286
 
287 287
 ```
288 288
 
289
+## poplin_biplot
290
+
291
+The `poplin_biplot()` function Visualize an overlay of a score plot and a
292
+loading plot using the `poplin_reduce()` output.
293
+
294
+```{r poplin_biplot, fig.width = 7, fig.height = 5}
295
+group <- colData(faahko_poplin)$sample_group
296
+
297
+poplin_biplot(faahko_poplin, xin = "pca", group = group, 
298
+              ellipse = TRUE, arrow_col = "orange", 
299
+              arrow_label_subset = c("FT039", "FT042", "FT046", "FT098"),
300
+              arrow_label_col = "gray20")
301
+
302
+```
303
+
289 304
 # Session info {-}
290 305
 
291 306
 ```{r session info}