Programming ur3 for writing (drawing sine wave)

I am a current Intern, I want to program the robot to draw a sine wave. Please, I need a clear answer on how to go about this, I am the only one working on this project and am new to robotics. Your guide will be of great help.

You can take a look at this article which goes over what you are looking to perform.