[adegenet-forum] Error in pairDistPlot()

Mariana Vasconcellos marianamv at utexas.edu
Wed Aug 26 18:48:55 CEST 2015


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,
Mariana


More information about the adegenet-forum mailing list