一些R函数【自己使用过,保存】

1. library(plotrix)  axis.break()  为图形添加断轴

2. library(beeswarm)  beeswarm  蜜蜂群图

http://rgm3.lab.nig.ac.jp/RGM/r_function?p=beeswarm&f=beeswarm

可以结合盒形图展示。

 3.求两个矩阵相似性

  library(ade4)

  coinertia() 函数

4.PCoA

  ape包 pcoa()函数 

5.高效率算Kendall相关系数:Package ‘pcaPP’ , cor.fk函数

  Calculates Kendall’s tau rank correlation coefficient in O (n log (n)) rather than O (n\^2) as in the
  current R implementation

6.检验两个分布是否相似

  ks.test()

7.卡方检验

  chisq.test()

原文地址:https://www.cnblogs.com/xianghang123/p/2939061.html