ggplot -折线图

2019-08-28  本文已影响0人  多美丽

ggplot真的让人上头..............

上数据吧


折线图数据
library(xlsx)
library(rJava)
library(ggplot2)

#4月1日
h4_1 = read.xlsx("C:/Users/Administrator/Desktop/concentration.xlsx",sheetName = '4.1')

p4_11 = ggplot(h4_1,
               aes(
                 concentration,
                 lnx1,
                 group = group,
                 linetype = group,
                 color = group
               )) + geom_line(size = 1.1) +
  geom_point(size = 2) + scale_x_continuous(breaks = seq(0, 1, 0.1)) + scale_y_continuous(breaks = seq(-2.5, 1.5, 0.2))

image.png
上一篇 下一篇

猜你喜欢

热点阅读