Description Format Source Examples
Export of US and China from 1999 to 2004 in US dollars
A data frame with 13 observations on the following 3 variables.
amount of export
year from 1999 to 2004
country: US or China
https://www.wto.org/english/res_e/statis_e/statis_e.htm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(Export.USCN)
par(mar = c(4, 4.5, 1, 4.5))
plot(1:13, Export.USCN$Export, xlab = "Year / Country", ylab = "US Dollars ($10^16)",
axes = FALSE, type = "h", lwd = 10, col = c(rep(2, 6), NA, rep(4, 6)), lend = 1,
panel.first = grid())
xlabel = paste(Export.USCN$Year, "\n", Export.USCN$Country)
xlabel[7] = ""
xlabel
abline(v = 7, lty = 2)
axis(1, at = 1:13, labels = xlabel, tick = FALSE, cex.axis = 0.75)
axis(2)
(ylabel = pretty(Export.USCN$Export * 8.27))
axis(4, at = ylabel/8.27, labels = ylabel)
mtext("Chinese RMB", side = 4, line = 2)
box()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.