You were so close:
p <- ggplot(plot.frame, aes(x=x,y=y)) +
geom_point(aes(colour = "point"), size=2) +
geom_line(aes(x=x,y=y2,colour="line"),size=1) +
facet_grid(crop~treat) +
opts(labels = c(x = "Variable 1", y = "Variable 2"))
p <- p + scale_colour_manual("Adjust",c("point"="black","line"="red"))
Unfortunately the legend can't currently tell you only have red points
and black lines, but it's something I hope to fix in a future release.
Hadley
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/