[R] problem wih plotrix:cluster.overplot

Jim Lemon jim at bitwrit.com.au
Wed Jan 30 09:52:36 CET 2013


On 01/29/2013 06:53 PM, Jean Véronis wrote:
> Hello,
>
> I am trying to use cluster.overplot from package plotrix and I get an error message when I add the "away" parameter:
>
> require(plotrix)
> distance<- read.table("distance.txt")
> cmd<- cmdscale(distance)
> cp<- cluster.overplot(cmd, away=2)
>
> Error in if (sum(overplots)>  1) { :
>    missing value where TRUE/FALSE needed
>
> If I don't use "away", everything works fine.
> I don't see anything in the documentation that explains this error.
> Any help will be appreciated.
>
Hi Jean,
The "away" argument needs to have both an x and y distance to offset the 
points. Try:

cp<-cluster.overplot(cmd,away=c(2,2))

I'll add this to the docs, thanks.

Jim



More information about the R-help mailing list