I am trying to add a legend to the right hand side of this xyplot using the simpleKey function but can't seem to get the syntax correct. I am trying to make a legend to differentiate between males and females on both of these plots.
and this is the resulting plot
so the brown ("peru") points are females and the blue ("cornflowerblue") are males.
I hope I have given enough detail - thanks!

