Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/matrix2list.2.R

This function partitions a matrix according to row labels and assigns the partitioned submatrices as objects of a list.

1 |

`x` |
a matrix with row labels, typically species names |

The output from this function is passed as input for `boxplotSort`

.

a list of objects; the number of objects is equal to the length of levels of the rownames of `x`

.
Each object is a matrix with the same row names.

Tsung Fei Khang tfkhang@um.edu.my

Khang TF, Soo OYM, Tan WB, Lim LHS. (2016). Monogenean anchor morphometry: systematic value, phylogenetic signal, and evolution. PeerJ 4:e1668.

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
data(pwed_pd)
data(spcolmap)
pwed_pd <- matrix2list.2(pwed_pd)
cladeI <- spcolmap$species[spcolmap$host %in% "M.buchanani"]
#We just want to look at distance between LM1 and LM3 in for dorsal anchor
boxplotSort(lapply(pwed_pd, function(k) k[,which(colnames(k)=="D1_3")]),
italic=TRUE, col=c("dodgerblue","violetred"), clade=cladeI,
ylab=expression(paste("Length ", "(", italic(mu),"m", ")")))
#Separation of two lineage seems possible at 15 micrometers
abline(h=15)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.