小编Lau*_*ytė的帖子

在R中使用qplot时如何更改图例名称?

当我使用 qplot 绘制图表并尝试将图例名称从“Temp”更改为“平均温度”时,它......不会改变。你知道我的代码可能有什么问题吗:

qplot(Year,
       Temp,
       data = LithuaniaTemp,
       main = "Lithuania Average Temperature 1900-2013",
       geom = c("point","smooth")) +
 aes(colour = Temp) +
 scale_color_gradient(low="blue", high="red") +
 theme_fivethirtyeight() +
 scale_fill_continuous(guide = guide_legend(title = "Average Temperature"))
Run Code Online (Sandbox Code Playgroud)

r ggplot2

1
推荐指数
1
解决办法
3905
查看次数

标签 统计

ggplot2 ×1

r ×1