I need to record the outputs (2 dimensional points) of an algorithm in r which is sequentially done through visualizing them. I need to know how the points are added in each