X hits on this document

49 views

0 shares

0 downloads

0 comments

20 / 23

18

AN INTRODUCTION TO R

R> plot(log(marketvalue) ~ log(sales), data = Forbes2000,

  • +

    col = rgb(0,0,0,0.1), pch = 16)

Figure 1.3

Scatterplot with transparent shading of points of the logarithms of market value and sales.

Exercises

Ex. 1.1 Calculate the median profit for the companies in the United States and the median profit for the companies in the UK, France and Germany.

Ex. 1.2 Find all German companies with negative profit.

Ex. 1.3 Which business category are most of the companies situated at the Bermuda island working in?

Ex. 1.4 For the 50 companies in the Forbes data set with the highest profits, plot sales against assets (or some suitable transformation of each variable), labelling each point with the appropriate country name which may need

Document info
Document views49
Page views49
Page last viewedMon Dec 05 13:39:33 UTC 2016
Pages23
Paragraphs684
Words5996

Comments