R數據可視化手冊學習簡單的繪製常見的圖形

1.繪製散點圖 # 使用ggplot2 library(ggplot2) ggplot(data = mtcars, aes(x = wt, y = mpg)) + geom_point()   2.繪製折線圖 # 使用ggplot library(ggplot2) # 繪製第一條折線附有數據點 g <- ggplot(data = pressure, aes(x = temperature, y
相關文章
相關標籤/搜索