我想更改下面的函数,以便value
根据中值而非平均值重新排序。使用mean
更改median
无效
sign.m$miRNA <- with(sign.m, reorder(miRNA,as.numeric(as.character(value)),mean))
> head(sign.m)
miRNA variable value
1 hsa-miR-99a-5p 100 -1.37
2 hsa-miR-92a-1-5p 100 3.11
3 hsa-miR-9-5p 100 -3.60
4 hsa-miR-877-5p 100 2.08
5 hsa-miR-7-5p 100 3.37
6 hsa-miR-642a-5p 100 -5.10