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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to