R programming

 

1. What is the relationship between `age of patient` (i.e., `age`) and `maximum heart rate` (i.e., `thalach`)?

1. What is the relationship between `serum choloesterol in mg/dl` (i.e, `chol`) and `maximun heart rate achieved` (i.e., `thalach`) by whether `exercise induced angina` (i.e., `exang`)?

1. What is the distribution of patients’ `maximum heart rate` (i.e., `thalach`) across `exercised induced angina` (i.e., `exang`)?and here are codes :for question one :
heart_disease_data %>%
ggplot(aes(x=age,
y=thalach )) +
geom_point()
for question two:
heart_disease_data %>%
ggplot(aes(x=chol,
y=thalach,
color= exang)) +
geom_point()
for question three:
heart_disease_data %>%
ggplot(aes(x=thalach,
fill= exang)) +
geom_bar()

 

This question has been answered.

Get Answer