A researcher conducts a study, and as part of the study, measures the height and weight of patients that she has split into two study groups. The data below represents the height and weight of 20 patients split into two groups enrolled in a study. Use this data to answer question 7.
GROUP 1 |
Patient ID |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
Height |
67 |
70 |
67 |
70 |
63 |
69 |
66 |
65 |
65 |
63 |
|
Weight |
163 |
168 |
147 |
161 |
136 |
150 |
153 |
148 |
146 |
135 |
|
GROUP 2 |
Patient ID |
K |
L |
M |
N |
O |
P |
Q |
R |
S |
T |
Height |
67 |
66 |
63 |
71 |
61 |
69 |
63 |
69 |
66 |
60 |
|
Weight |
177 |
171 |
171 |
169 |
161 |
177 |
174 |
168 |
165 |
157 |
1. Plot the data on a single scatterplot, keeping height on the horizontal access. Be sure to differentiate patients in the two groups (for example, with different colors).
I have used R to construct the scatterplot. You can find the R
code and the scatterplot below:
x1=c(67,70,67,70,63,69,66,65,65,63)
x2=c(67,66,63,71,61,69,63,69,66,60)
y1=c(163,168,147,161,136,150,153,148,146,135)
y2=c(177,171,171,169,161,177,174,168,165,157)
plot(x1,y1,lty=2,col=2,pch=15,xlim=c(60,75),ylim=c(125,185),xlab="Height",ylab="Weight",main="Scatterplot")
points(x2,y2,lty=2,col=3,pch=16)
legend("bottomright",col=c(2,3),c("Group 1","Group
2"),pch=c(15,16))
Get Answers For Free
Most questions answered within 1 hours.