ggplot(data = tempdata, aes(x = Year)) +
+ geom_line(aes(y = Dec, colour = "Dec")) +
+ scale_colour_manual("",
+ breaks = c("Dec"),
+ values = c("Dec"="red")) +
+ xlab("Year") +
+ scale_y_continuous("Temperatura (C)", limits = c(-80,100)) +
+ labs(title="Temperature variation since 1880")
错误:提供给连续刻度的离散值
这是a link to the data file。已处理的数据文件,我将该值乘以100。