Well, my code above is plotting (x, y) points, you can modify the code to do the same with your own matrix, if you want more specific help, please provide a reproducible example.
If you've never heard of a reprex before, you might want to start by reading this FAQ: