I would like to use gap.plot which makes a break in the x axis. But I need to plot three variables. I cannot figure out how to plot all three; my code plots only the last variable...
library(plotrix)
par(bty="n") # deleting the box
with(subset(data1, mechanism=='Inhibition'),gap.plot(day,BL.P, gap=c(51,116), gap.axis="Time (day)", xlab="Time (days)", ylab="Proportion",pch=16,
col="#0072B2"))
with(subset(data1, mechanism=='Facilitation'), gap.plot(day,BL.P, gap=c(51,116), gap.axis="Time (day)", pch=16,
col="#D55E00"))
with(subset(data1, mechanism=='Total'), gap.plot(day,BL.P, gap=c(51,116), gap.axis="Time (day)", xlab="Time (days)", ylab="Proportion",pch=16,
col="#000000",xtics=c(1,50,119,133)))
abline(v=seq(from=50.5,to=53.5,by=.001), col="white") # hiding vertical lines
Here is the figure with only one variable:
My data is here: https://www.dropbox.com/s/h8j895hklxeanyr/data1.csv?dl=0

