And then you're going to add the data by gender, so you're going to

maybe add the females first, and then add the males, and the

idea is that each time you add the data points, they'll be

of a different color, or perhaps a different plotting symbol, or whatever.

So first, let's set up a plotting region, so I'm

going to say plot xy So I'm going to pass at the data.

But I'm going to say type = N.

So this means make the plot, but don't actually put the data in there.

So you can see that when I hit,

execute this function, everything happens just like before.

The labels are put in.

The tick marks are put in. The margins are specified.

Everything is there, except for the data.

So the only thing that's missing is the data.

And so what I'm going to do is, I'm going to add the

data, but I'm going to add them one group at a time.

So let's say I add the males first. So I can say points x, and then

I'm going to subset the vector so that the g, I

only take the points where g is equal to male.

Right, so that's a subset.

And then I'm going to say y, and then g is equal to male.

So this is only going to plot, plot the points, so where where the values of the

g variable are equal to male, let say I'm going to set, make the, that color green.