Curso introductorio a funciones y loops en R
In this tutorial you can find some instructions to do nice math figures