[adegenet-forum] Error in pairDistPlot()

Jombart, Thibaut t.jombart at imperial.ac.uk
Thu Aug 27 12:11:00 CEST 2015

Hi Mariana, 

this is likely a bug. Best way to report these is via the issue system on github - that way you'll be notified automatically of any progress.

I just created an issue for you: 

comment there and you'll receive notifications.

Most likely this will be sorted today.


From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Mariana Vasconcellos [marianamv at utexas.edu]
Sent: 26 August 2015 17:48
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] Error in pairDistPlot()

Hi eveyone,

I am trying to run pairDistPlot() using adegenet package with my data or the example provided in the R help and it prints the following error: "Error in levels(K) : object 'K' not found”.

See below the example that was supposed to run from the Rhelp. I am using the 2.0.1 development version of adegenet. Could anyone help me to understand why is it printing this error?

> ## use a subset of influenza data
> data(H3N2)
> set.seed(1)
> dat <- H3N2[sample(1:nInd(H3N2), 100)]
> ## get pairwise distances
> temp <- pairDistPlot(dat, other(dat)$epid)
Error in levels(K) : object 'K' not found

Thank you,
adegenet-forum mailing list
adegenet-forum at lists.r-forge.r-project.org

More information about the adegenet-forum mailing list