Quartz | Level 8

## SAS Plot question

The question i want to solve is;

Make a scatterplot and portrays how weight (wt in x-axis) and height (ht
in y-axis) differs between genders (sex).Confirm your conclusions with a histogram and a comparative box plot.

I have made the scatterplot however am unsure how to do the second bit. Would I need 2 separate box plots and histograms to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Diamond | Level 26

## Re: SAS Plot question

Box plots: one plot, two boxes (one for male and one for female)

Histogram: one plot, bars for males along side bars for females.

PROC SGPLOT will do both.

--
Paige Miller
4 REPLIES 4
Diamond | Level 26

## Re: SAS Plot question

Box plots: one plot, two boxes (one for male and one for female)

Histogram: one plot, bars for males along side bars for females.

PROC SGPLOT will do both.

--
Paige Miller
Quartz | Level 8

## Re: SAS Plot question

Brilliant so for boxplot I’d need 2 graphs one for weight and gender the other height and gender?
Diamond | Level 26

## Re: SAS Plot question

Both box plots and scatterplots have only one y-variable.

So you will need one box plot for height and another for weight. Same for histograms.

--
Paige Miller
Quartz | Level 8

## Re: SAS Plot question

Fabulous so all together I’ll have on scatterplot. Height and weight on each axis and a colour change for gender. Then 2 separate box plots and 2 histograms.
Discussion stats
• 4 replies
• 774 views
• 0 likes
• 2 in conversation