kmstat and plot