following your comments, I guess you want this kind of graphic?
# Create a "long" data frame rather than a "wide" data frame.
country <- rep(c("Afghanistan", "Albania", "Algeria","Angola",
"Antigua and Barbuda", "Argentina"),each = 10, times = 1)
year <- rep(c(2003:2012), each = 1, times = 6)
value <- runif(60, 0, 50)
foo <- data.frame(country,year,value,stringsAsFactors=F)
foo$year <- as.factor(foo$year)
# Draw a ggplot figure
ggplot(foo, aes(x=year, y = value,group = country, color = country)) +
geom_line() +
geom_point()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…