答案 0 :(得分:0)
在查看建议的教程(谢谢)和在线的其他一些研究之后,这是我的解决方案:
ggplot(tuberculosis, aes(year)) +
ggtitle("Tuberculosis") +
labs(x = "Year", y = "Rate", colour = "Country") +
geom_line(aes(y = DRC, colour="DRC")) +
geom_line(aes(y = Algeria, colour="Algeria")) +
geom_line(aes(y = Kenya, colour="Kenya")) +
geom_line(aes(y = Mali, colour="Mali")) +
geom_line(aes(y = Namibia, colour="Namibia")) +
geom_line(aes(y = South.Africa, colour="South Africa")) +
geom_line(aes(y = Sudan, colour="Sudan"))
# save to file
ggsave(file="wdi-tuberculosis.png")