Doll (1955) showed per capita consumption of cigarettes in 11 countries in 1930, and the death rates from lung cancer for men in 1950. Use R base graphics to generate the plot shown below. Source: Freedman, et al. (1997). Statistics. pp. 148-150.

Column 1: Country names Column 2: Cigarettes consumption (per million) Column 3: Death rate (per capita)

loading data and check data structure, display first 6 rows of data

## 'data.frame':    11 obs. of  3 variables:
##  $ Country    : Factor w/ 11 levels "Australia","Canada",..: 1 2 3 4 10 5 6 7 8 9 ...
##  $ consumption: int  480 500 380 1100 1100 230 490 250 300 510 ...
##  $ death      : int  180 150 170 350 460 60 240 90 110 250 ...
## [[1]]
##        Country consumption death
## 1    Australia         480   180
## 2       Canada         500   150
## 3      Denmark         380   170
## 4      Finland        1100   350
## 5           UK        1100   460
## 6      Iceland         230    60
## 7  Netherlands         490   240
## 8       Norway         250    90
## 9       Sweden         300   110
## 10 Switzerland         510   250
## 11         USA        1300   200

In-class exercise 3.

Use R base graphics to create the national flag of Denmark.

## In-class exercise 4

In-class exercise 5