散布図+線形近似
x1 <- data.frame( 年次=c(1985, 1990, 1995, 2000, 2005, 2010),
出生数=c(1432, 1222, 1187, 1191, 1063, 1071),
死亡数=c(752, 820, 922, 962, 1084, 1197) )
library(ggplot2)
ggplot(x1, aes(x=年次)) +
geom_point( aes(y=出生数, colour="出生数"), size=6 ) +
geom_point( aes(y=死亡数, colour="死亡数"), size=6 ) +
stat_smooth( method="lm", se=FALSE, aes(y=出生数, colour="出生数"),
size=2 ) +
stat_smooth( method="lm", se=FALSE, aes(y=死亡数, colour="死亡数"),
size=2 ) +
labs(x="年次", y="出生数, 死亡数") +
theme_bw() 18