Exercise 1 Produce a data frame with two columns: x, which ranges from -2π to 2π and has a small interval between values (for plotting), and cosine(x). Plot cosine(x) vs. x as a line. Repeat, but try some different line types or colours. (Hint. you could use seq function)
Exercise 2 Produce a plot like the one shown below. (Hint: you can use the matplot function to make the plots.)
Exercise 3 Check out the data in the data frame Loblolly (in the datasets package), on the growth of loblolly pine trees from different stocks. Create the following plot, or something similar (note that you will need to convert height from ft to m).