how about...
p <- qplot(preds, obs, data = dat, shape = di)
p + scale_shape_manual(name = "disease status", values = c("+", "-"),
labels = c("positive", "negative"))
hope that helps
Gary
------------------------------------
Dr Gary S Collins
Centre for Statistics in Medicine
Wolfson College Annexe
University of Oxford
Linton Road
Oxford, OX2 6UD
Tel:
+44 (0)1865 284418
Fax:
+44 (0)1865 284424
www.csm-oxford.org.uk
------------------------------------