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.

Required fields*

6
  • 1
    Thank you Arun. Your suggestions works perfectly but it fills all dots in the same colour. Is it possible to specify a particular color for each as in plot? I would edit it to provide the data. Commented Apr 12, 2013 at 7:59
  • 1
    Yes. It is possible. I'm just looking for a data to create the plot.. :) Commented Apr 12, 2013 at 8:01
  • 1
    @PGreen, try this edit. You can do the same for colour with scale_colour_manual(values=...) if you insert colour within aes(.) (edited). Commented Apr 12, 2013 at 8:04
  • 1
    The colours/fills are assigned according to the levels of your factor. Commented Apr 12, 2013 at 8:08
  • 2
    Perfect! That's it! Finally, only 2-color are meaningful, but I wanted to add border since I apply jitter and border helps to visualize crowded regions. Different colors for both colour and fill was just an exta-detail, just to respect the format of my older script in plot. Thanks a lot Arun, really helpful and efficient ;-) Commented Apr 12, 2013 at 8:20