iris %>%
ggplot(.,aes(x=Sepal.Length,y=..density..,fill=Species))+
scale_x_continuous(limit=c(0,10),breaks =seq(0,10,1))+
geom_density(alpha=.2)
Above script works well,but I never seen ..density..
in R.
What's ..density..
?
iris %>%
ggplot(.,aes(x=Sepal.Length,y=..density..,fill=Species))+
scale_x_continuous(limit=c(0,10),breaks =seq(0,10,1))+
geom_density(alpha=.2)
Above script works well,but I never seen ..density..
in R.
What's ..density..
?
As teunbrand said,..
is replaced by after_stat
.
after_stat() replaces the old approaches of using either stat() or surrounding the variable names with ...