The canvas plug is a great way to do it.
Athough you can also do it with sprites. Make a sprite that is a short line. set the origin at one end of the line. Set the sprite's position to the first x,y coordinates you want to plot. set the angle of the sprite to the next x,y coordinate, then set the width of the sprite to the distance between the two points - using Distance(x1,y1,x2,y2).
You can see an example of plotting lines like this in the 3d star map tutorial I did last year. https://www.scirra.com/tutorials/774/3d-star-map. Click on a star, then click on another one... The capx is available to play with.