I have a data set like this
df<- structure(list(X = structure(c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L,
3L, 4L, 4L, 4L, 5L, 5L, 5L, 6L, 6L, 6L, 7L, 7L, 7L), .Label = c("Control1",
"Control2", "Control3", "Control4", "Control5", "Control6", "Control7"
), class = "factor"), name = structure(c(3L, 2L,
1L, 3L, 2L, 1L, 3L, 2L, 1L, 3L, 2L, 1L, 3L, 2L, 1L, 3L, 2L, 1L,
3L, 2L, 1L), .Label = c("Cond1", "Cond2", "Cond3"), class = "factor"),
Value = c(1.1, 1.7, -0.7, 0.8, 1.9, -0.71, 1.6, 1.6, -0.5,
1.9, 1.8, -0.6, 1.7, 1.5, -0.9, 1.3, 1.5, -0.7, 1.2, 1.6,
-0.5), Signifcance = c(1.06e-18, 9.4e-20, 9e-04, 5.7e-10,
3.02e-50, 8.01e-08, 1.4e-19, 8.6e-83, 3.2e-07, 6.8e-15, 1.2e-92,
1.7e-09, 6.2e-15, 3.4e-68, 1.4e-09, 6.9e-15, 2.3e-48, 4.3e-12,
1.1e-21, 1.7e-141, 1.4e-08)), class = "data.frame", row.names = c(NA,
-21L))
I have been trying to figure out how to plot the data on top of each other based on the first column
If you look at the column X, there are Control1 (3 times) Control2(3 times) etc. In each control I have 3 conditions I wanted to have 3 lines corresponding to each cond across all Controls versus one axis and then one line for the significanc value for each with another color.
I checked here and I found this solution but I cannot figure out how to use it for this data How can I plot with 2 different y-axes?
any help is appreciated