Saturday, 13 April 2019

density


d <- density(mtcars$mpg)
 
plot(d)

# Filled Density Plot
d <- density(mtcars$mpg)
plot(d, main="Kernel Density of Miles Per Gallon")
polygon(d, col="red", border="blue")

No comments:

Post a Comment