Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • error with your y=estimate i guess estimate is beta? Commented Sep 13, 2012 at 16:41
  • also shape should be group1 right? Commented Sep 13, 2012 at 16:44
  • so you want one blue circle,one red circel, obe blue triangle one red triangle? Commented Sep 13, 2012 at 16:50
  • sorry about the problems with the code. I've changed it so that y = beta and shape = group1. I'd like to have a red circle, blue circle, red triangle, blue triangle. Thanks!
    – N Brouwer
    Commented Sep 13, 2012 at 17:02
  • The main problem was that you were using two different vectors to describe your groups resulting in two legends. using your group2 gives each group their own shape/colour. then you choose the specific ones you want using manual Commented Sep 13, 2012 at 17:38