I saw the coding. But the above are about bar chart. In case of line chart, it shows wrong
My code is
library(readr)
data <- read_csv("data.csv")
data$Month <- factor(data$Month, levels = data$Month)
library(ggplot2)
ggplot(data, aes(x = Month, y = POC, group = Seasons)) + geom_line() + geom_point() +
geom_errorbar(aes(ymax = sd_max, ymin = sd_min), width = 0.25) +
coord_cartesian(ylim = c(0.95 * min(data$sd_min), 1.05 * max(data$sd_max)),
expand = FALSE, clip = "off") + theme_classic()+
theme(axis.text.x = element_text(angle = 90, hjust = 1))
What code is essential to add the ggplot to show the second layer just like the attached
image.
please, help