Created
July 18, 2020 19:00
-
-
Save karan19100/d05e9aff476696255a496551c79d9f45 to your computer and use it in GitHub Desktop.
build_linear_model_by_karanshah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show the relationship creating a regression line | |
qplot(HEMAGLOBIN, HEMATOCRIT, data = newdata, | |
main = "HEMAGLOBIN and HEMATOCRIT relationship") + | |
theme(plot.title = element_text(hjust = 0.5)) + | |
stat_smooth(method="lm", col="red", size=1) + | |
geom_point(colour = "blue", size = 1.5) + | |
scale_y_continuous(breaks = c(30:65), minor_breaks = NULL) + | |
scale_x_continuous(breaks = c(10:25), minor_breaks = NULL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment