I wish to create this plot preferably in pgfplots or tikz.
I have actually got a version plotted (with help from SO), but I have used R and exported the plot using tikzDevice. I can't post the tikz code because it is way over the limit for posting (so I'll give the R code instead).
ps <- ldply(0:35, function(i)data.frame(s=0:i, n=i))
plot.new()
plot.window(c(0,36), c(0,1))
apply(ps[ps$s<6 & ps$n - ps$s < 30, ], 1, function(x){
s<-x[1]; n<-x[2];
lines(c(n, n+1, n, n+1), c(s/n, s/(n+1), s/n, (s+1)/(n+1)), type="o")})
axis(1)
axis(2)
lines(6:36, 6/(6:36), type="o")
# need to fill in the unconnected points on the upper frontier
Q. So looking to plot directly with tikz/pgfplots rather than via R and tikzdevice.

