[R] X-axis in meandist {vegan}

Jari Oksanen jari.oksanen at oulu.fi
Mon Jun 3 06:02:21 CEST 2013


Dear Kumar Mainali, 

On 03/06/2013, at 00:01 AM, Kumar Mainali wrote:

> I am using vegan package for estimating dissimilarity within and between clusters, and plotting them. The following code gives me a dendrogram without X-axis. How would I add X axis to the plot? Below "dataEnv" is a matrix of my environmental variables. dataFact$Source_by_Type has the levels that delineate clusters.
> 
> dataEnvDist <- vegdist(dataEnv, method="bray") ## bray curtis dissimilarity
> meanDist <- meandist(dataEnvDist, dataFact$Source_by_Type)
> plot(meanDist, ylab="Mean dissimilarity")
> 

What should the X-axis show? 

You can add X-axis with command axis(1), but it hardly shows anything useful.

Cheers, Jari Oksanen

--
Jari Oksanen, Dept Biology, Univ Oulu, 90014 Finland



More information about the R-help mailing list