Read.table("AD.SKB.K1.SCORE RW.NTS", header=T,row.names = 1)->a a local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE) if(nchar(pkg)) library(pkg, character.only=TRUE)}) dist(a, "euclidean") dist(a, "euclidean")->b b plot(c) plot(c, "u")