ggplot -折线图

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

上数据吧


ggplot -折线图_第1张图片
折线图数据
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))

ggplot -折线图_第2张图片
image.png

你可能感兴趣的:(ggplot -折线图)