Created
July 18, 2020 18:50
-
-
Save karan19100/320af884725979bb9f5cf5408ed70037 to your computer and use it in GitHub Desktop.
Densityplot_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
par(mfrow=c(1, 2)) # it divides graph area in two parts | |
plot(density(newdata$HEMAGLOBIN), main="Density: HEMAGLOBIN", ylab="Frequency", | |
sub=paste("Skewness:", round(e1071::skewness(newdata$HEMAGLOBIN), 2))) | |
polygon(density(newdata$HEMAGLOBIN), col="yellow") | |
plot(density(newdata$HEMATOCRIT), main="Density: HEMATOCRIT", ylab="Frequency", | |
sub=paste("Skewness:", round(e1071::skewness(newdata$HEMATOCRIT), 2))) | |
polygon(density(newdata$HEMATOCRIT), col="orange") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment