install.packages£¨"ggplot2"£©
library£¨ggplot2£©
install.packages£¨"dplyr"£©
library£¨dplyr£©
setwd£¨"c:\\r_sample"£©
people1<-read.csv£¨"³²ÇÑ»ý»ê°¡´ÉÀα¸.csv",header=T£©
people1
people2<-read.csv£¨"ºÏÇÑ»ý»ê°¡´ÉÀα¸.csv",header=T£©
people2
people3<-read.csv£¨"³²ºÏÇÑ»ý»ê°¡´ÉÀα¸.csv",header=T£©
people3
a<-ggplot£¨people3,aes£¨x=year,y=people_S£©£©+geom_bar£¨stat="identity",fill="red"£©
a
b<-ggplot£¨people3,aes£¨x=year,y=people_N£©£©+geom_bar£¨stat="identity",fill="blue"£©
b
c<-ggplot£¨data=people3£©+geom_bar£¨a£©+geom£¨b£©
c
ÇÕÄ¥°ÍÀ» C·Î ³õ°í ³Ö°í½ÍÀºµ¥ ¾î¶»°Ô ÇÏ¸é µÇ³ª¿ä
a,b´Â ³ª¿Ô½À´Ï´Ù