I am fairly new to R and have been given a data set where I am given height (y axis), weight (x axis), and sex must make scatter-plots based on gender. How can I separate this data so that I have the female lengths and widths and the males lengths and widths?
So far I have been able to make a scatter-plot with both genders, but don't know how to make one for each gender separately.
Both genders scatter-plot:
plot( height ~ weight, data=x,
main= "Height vs. Weight")