regression - Point Color in R -


I have some data, one of which is vector gender where gender is equivalent to female and 1 for male is.

Suppose "reggae" is my linear model.

When I do plot (studres (reg) ~ reg $ feet) I want the plot which I want, but I want to paint this male errors blue color. That's an easy way to do this, but I'm still a rookie on R, so I appreciate any help.

Thank you. <<<

/ Code>

Assume the data is of the form:

  & gt; Dat yx gender 1 0 2 Female 2 10 5 Female 3 15 10 Male 4 20 15 Female 5 24 20 Male 6 11 25 Male 7 30 30 Female 8 34 35 male  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -