There are two problems with your data.
You can see the first one by looking at the smoother on untransformed axes:
p + geom_point() + geom_smooth()
The standard errors are huge because you only have 4 points in each
line. You can fix that with:
p + geom_point() + geom_smooth(se = F)
But the plot on the probit scale still fails:
p + geom_point() + geom_smooth(se = F) + scale_y_probit()
If you look careful at the data on the probit scale you'll notice
there are a couple of points at the very top edge of the plot:
p + geom_point() + scale_y_probit()
This indicates that they're getting transformed to +infinity by the
probit scale. Removing them fixes one problem but creates another -
you only have 3 points to fit a smooth to:
ggplot(subset(d.f.ecdf, ecdf < 1), aes(lat, ecdf, colour = grp) ) +
geom_point() +
geom_smooth() +
scale_y_probit()
That's best resolved by not fitting a smooth:
ggplot(subset(d.f.ecdf, ecdf < 1), aes(lat, ecdf, colour = grp) ) +
geom_point() +
geom_line() +
scale_y_probit()
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/