get k nearest neighbor and plot neighbor