SUMMARY R> boxplot(log(marketvalue) ~
country, data =
subset(Forbes2000, country %in% c("United Kingdom",
"Germany", "India", "Turkey")),
ylab = "log(marketvalue)", varwidth = TRUE)
Boxplots of the logarithms of the market value for four selected coun- tries, the width of the boxes is proportional to the square-roots of the number of companies.
to be abbreviated (using abbreviate) to avoid making the plot look too ‘messy’.
Ex. 1.5 Find the average value of sales for the companies in each country in the Forbes data set, and find the number of companies in each country with profits above 5 billion US dollars.