Description Usage Arguments Value Author(s) References Examples
View source: R/recluster.line.R
This function identifies a line in a configuration based on different criteria and produces its slope and intercept values. I can be used together with recluster.rotate to rotate a configuration based on a custom line.
1 | recluster.line(mat,type="maxd",X1=NULL,X2=NULL)
|
mat |
The bidimensional configuration. |
type |
The type of line to be computed: "maxd" is the line connecting the most distant points, "regression" is the regression line between X and Y values, "points" is the line connecting two custom points of the configuration (X1 and X2). |
X1 |
The row number in mat of the first custom point. |
X2 |
The row number in mat of the second custom point. |
m |
The slope of the line. |
q |
The intercept of the line. |
Leonardo Dapporto
Dapporto L., Voda R., Dinca V., Vila R. "Comparing population patterns for genetic and morphological markers with uneven sample sizes. An example for the butterfly Maniola jurtina" Methods Ecol Evol (2014), 5, 834-843.
1 2 3 4 5 | data(dataisl)
#Compute bidimensional representation for islands
pcoa<-cmdscale(recluster.dist(dataisl))
#Compute the line
lin<-recluster.line(pcoa)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.