如何缩放R中的ggplot,以使y轴从0开始?

时间:2018-07-16 16:56:32

标签: r dataframe ggplot2

我创建了一个数据框DF。

date <- c("2018-06-25", "2018-06-25", "2018-06-26", "2018-06-26", "2018-06- 
27", "2018-06-27")

temperature <- c("15", "18", "16", "17", "14", "15")

DF <- data.frame(date, temperature)

我想使用ggplot绘制不同日期的温度。

如何修改下面的代码,以使y轴的比例从0开始。

ggplot(DF, aes(date, temperature))+geom_point() + ggtitle('Temperature plot') 

Link to temperature plot

0 个答案:

没有答案