added plotn.r and plotn.png