Blog of Andrés Aravena

Homework 2

23 February 2019. Deadline: Friday, 1 March, 9:00.

Using R Turtle Graphics, write four functions to draw:

To do so, you must use Rstudio to create a R Script file. The filename must be homework2.R.You can use this template as a starting point. The suggested function names are:

Notice that only the last function takes an input value. The letter n represents how many sides are there in the polygon. With these functions you should be able to draw a figure like this:

Send your answer to Write your student number in the email’s Subject and at the beginning of the file.


Deadline: Friday, 1 March, 9:00.

Originally published at