Skip to content

Commit 14fa92d

Browse files
authored
Update README.md
1 parent 051b537 commit 14fa92d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The package includes
1919

2020
* PCA
2121

22+
* PCoA
23+
2224
## Instructions
2325

2426
### Installation
@@ -281,3 +283,25 @@ PCA(Data,components = c(1,2),legend_position = "none")
281283
* names = F # used to indicate sample names
282284
* dotsize = 3 # dotsize
283285
* labsize = 3 # label size
286+
* ellipse = T # T or F to show ellipse
287+
#### PCoA
288+
```
289+
# Makes a subdirectory and saves PCoA plot
290+
PCoA(Data,components = c(1,2),methods = c("bray", "manhattan")
291+
```
292+
<p align="center">
293+
<img src=https://user-images.githubusercontent.com/77651662/127433788-7aa75a05-3559-4bd1-9504-c1234c5905d4.png width="600" height="500">
294+
</p>
295+
<p align="center">PCA plot with selected components</p>
296+
297+
##### Adjustable parameters
298+
* color = c("#FF3300", "#FF6600", "#FFCC00", "#99CC00", "#0066CC", "#660099") # Colors for the plots
299+
* legend_position = "none" # "none","left","right","bottom","top"
300+
* fig_width = NA #figure size
301+
* fig_height = NA #figure size
302+
* components = c(1,2) # selected components
303+
* names = F # used to indicate sample names
304+
* dotsize = 3 # dotsize
305+
* labsize = 3 # label size
306+
* ellipse = T # T or F to show ellipse
307+
* methods = Dissimilarity index c("manhattan", "euclidean", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao", "mahalanobis", "chisq",chord")

0 commit comments

Comments
 (0)