[R] problem wih plotrix:cluster.overplot
Jean Véronis
jean at veronis.fr
Wed Jan 30 10:32:04 CET 2013
great! many thanks!
Le 30 janv. 2013 à 09:52, Jim Lemon <jim at bitwrit.com.au> a écrit :
> 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