Robert Jeenchen Chen, MD, MPH (rjchen@post.harvard.edu)
11/24/2019
library(plotly) plot_ly(heartdata, x = ~age, y = ~thalach, type = "scatter", color = ~factor(slope))
plot_ly(heartdata, x = ~age, y = ~thalach, type = "scatter", color = ~factor(sex))
plot_ly(heartdata, x = ~age, y = ~thalach, type = "scatter", color = ~factor(fbs))
plot_ly(heartdata, x = ~age, y = ~thalach, type = "scatter", color = ~factor(exang))
plot_ly(heartdata, x = ~chol, y = ~thalach, type = "scatter", color = ~age)
plot_ly(heartdata, x = ~trestbps, y = ~thalach, type = "scatter", color = ~chol, size = ~age)
plot_ly(heartdata, x = ~trestbps, y = ~chol, z = ~thalach, type = "scatter3d", color = ~age)
plot_ly(heartdata, x = ~chol, type = "histogram", color=~factor(fbs))
plot_ly(heartdata, x = ~thalach, type = "histogram", color=~age)
plot_ly(heartdata, x = ~trestbps, type = "histogram", color=~age)