```r
ggplot(histogram,aes(x = R))+
geom_histogram(aes(y=..density.., fill= R>0), color="black", binwidth=0.01, breaks=seq(-0.3,1,0.01))+
scale_fill_manual(values=c("#FFD39B", "#B0C4DE"), guide=FALSE)+
guides(fill="none")+
labs(x ="Spearman's correlation", y = "Probability density")+
geom_density()+
geom_vline(xintercept = median(histogram$R),linetype = "dashed",color="red",size = 0.5)+
annotate(geom = "text", color="black",x = median(histogram$R), y=3,label ="median r= 0.51", size=3)+
theme_classic()
```块功能插入代码,请勿粘贴截图