I have two columns in my dataset: Health
and Weight
, both being of numeric type:
Health<-number of days when health is not good,
Weight<-weight
All I want to check if there is a relationship between Health and Weight. In other words, does a Weight
increase yield an increase of the number of days where Health
is not good, or the converse? I just want to check the relation between those two columns in dataset by plotting some graphs.
Here my sample dataset:
| Health | Weight |
|:-----------|------------:|
| 0 | 30 |
| 3 | 63 |
| 2 | 31 |
| 10 | 169 |
| 1 | 9 |
|0 | 139 |
plot(newdata$Weight, newdata$Health)
? $\endgroup$ – Spacedman Aug 20 '16 at 12:50