recluster.plot.sites.col {recluster} | R Documentation |
Plotting RGB dots on a custom coordinate space
Description
This function plots the RGB dots belonging to a matrix obtained by recluster.col on a user defined set of coordinates (usually longitude and latitude) for original sites.
Usage
recluster.plot.sites.col (long, lat, mat, cext = 0.3, cex = 1, cex.axis = 0.7,
cex.lab = 0.8, text = FALSE, pch=21, add = FALSE,...)
Arguments
long |
A vector indicating longitude for cases. |
lat |
A vector indicating latitude for cases. |
mat |
A matrix inherited by recluster.col. |
text |
A logical indicating if row names should be plotted. |
cext |
Dimension for row names. |
cex |
Dimension of dots. |
cex.axis |
Dimension of axis labels. |
cex.lab |
Dimension of labels. |
add |
A logical. If TRUE then the points are added to an existing graph. |
pch |
The symbol to use when plotting points |
... |
See par() for other graphical parameters |
Value
A colour plot.
Author(s)
Leonardo Dapporto and Matteo Ramazzotti
References
Dapporto, L., Fattorini, S., Vod?, R., Dinc?, V., Vila, R. "Biogeography of western Mediterranean butterflies: combining turnover and nestedness components of faunal dissimilarity." J Biogeogr (2014), 41: 1639-1650.
Examples
data(datamod)
sordiss<- recluster.dist(datamod, dist="sorensen")
lat<-c(2,2,2,1,3,1,1,3,3)
long<-c(1,5,3,3,3,1,5,1,5)
points<-cmdscale(sordiss)
col<-recluster.col(points)
recluster.plot.sites.col(long, lat, col,text=TRUE)