Learn R Programming

ssym (version 1.5.2)

gdp: Gross Domestic Product (per capita)

Description

This dataset corresponds to the per capita gross domestic product (current US$) of 190 countries during 2010.

Usage

data(gdp)

Arguments

References

World Bank's DataBank website (http://databank.worldbank.org/data/).

Examples

Run this code
data("gdp", package="ssym")
par(mfrow=c(1,2))
hist(gdp$gdp2010, xlim=range(gdp$gdp2010), ylim=c(0,0.00015), prob=TRUE, breaks=55,
     col="light gray",border="dark gray", xlab="GDP per capita 2010", main="Histogram")
plot(ecdf(gdp$gdp2010), xlim=range(gdp$gdp2010), ylim=c(0,1), verticals=TRUE,
     do.points=FALSE, col="dark gray", xlab="GDP per capita 2010",
	 main="Empirical Cumulative Distribution Function")

Run the code above in your browser using DataLab