Make me pretty (Density Plot)

hlsmith

Less is more. Stay pure. Stay poor.
#1
In the below figure, I would like the word 'Density', not to be on the graph. So by default it includes the var name. Any suggestions?

Code:
diff_1 = rnorm(250, 30, 5)
Density = diff_1

p <- mcmc_areas(
  data.frame(Density), 
  prob = 0.95, # 80% intervals
  prob_outer = 0.999, # 99%
  point_est = "median")

library(ggplot2)
p <-   p + labs (title = ' ',
                 x = 'Post-Intervention Proportion - Pre-Intervention Proportion',
                 y = ' ') +
  theme(text=element_text(size=14)) +
  theme(axis.text=element_text(size=14))
p
 

Attachments

Dason

Ambassador to the humans
#2
change
Code:
theme(axis.text=element_text(size=14))
to
Code:
theme(axis.text.x = element_text(size=14),
      axis.text.y = element_blank())