Description Usage Arguments Author(s) References See Also Examples
View source: R/reg2cluster2dist.R
Visualisation of various regressions on distance (or dissimilarity) data where objects are from two groups.
1 2 3 4 5 6 7 8 
dmx 
dissimilarity matrix or object of class

dmy 
dissimilarity matrix or object of class

grouping 
something that can be coerced into a factor,
defining the grouping of
objects represented by the dissimilarities 
groups 
Vector of two levels. The two groups defining the
regressions to be compared in the test. These can be
factor levels, integer numbers, or strings, depending on the entries
of 
cols 
vector of four colors (or color numbers) to be used for
plotting distances
and regression lines within the first group, within the second group,
distances between groups, and a line marking the center of the
betweengroups explanatory distances, see 
pchs 
vector of three plot symbols (or numbers) to be used for
plotting distances within the first group, within the second group,
and distances between groups, see 
ltys 
vector of line type numbers to be used for single group
withingroup regression, both groups combined withingroup
regression, regression with all distances, and regression combining
withingroups distances of one group with betweengroups distances,
see 
individual 
if 
jointwithin 
if 
jointall 
if 
oneplusjoint 
if 
jittering 
if 
bcenterline 
if 
xlim 
to be passed on to 
ylim 
to be passed on to 
xlab 
to be passed on to 
ylab 
to be passed on to 
... 
optional arguments to be passed on to 
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
Hausdorf, B. and Hennig, C. (2019) Species delimitation and geography. Submitted.
regeqdist
, regdistbetween
,
regdistbetweenone
, regdistdiffone
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  options(digits=4)
data(veronica)
ver.geo < coord2dist(coordmatrix=veronica.coord[173:207,],file.format="decimal2")
vei < prabinit(prabmatrix=veronica[173:207,],distance="jaccard")
species <c(rep(1,13),rep(2,22))
loggeo < log(ver.geo+quantile(as.vector(as.dist(ver.geo)),0.25))
plotdistreg(dmx=loggeo,dmy=vei$distmat,grouping=species,
jointwithin=FALSE,jointall=FALSE,groups=c(1,2))
legend(5,0.75,c("within species 1",
"within species 2","species 1 and between","species 2 and between"),lty=c(1,1,2,2),col=c(1,2,1,2))
plotdistreg(dmx=loggeo,dmy=vei$distmat,grouping=species,
jointwithin=TRUE,jointall=TRUE,oneplusjoint=FALSE,groups=c(1,2))
legend(5,0.75,c("within species 1",
"within species 2","all distances","all within species"),lty=c(1,1,1,2),col=c(1,2,3,3))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.