I need to graphically compare two brms model prior and posterior distributions. One of the models uses default flat prior. How should I graphically show the flat prior? Would it be correct to just show a line from -Infinity to Infinity?
df = tibble(x = seq(1, 2, 1), y = rep(0.01, length.out = T))
df%>%
ggplot(aes(x, y)) +
geom_line(color = "#616161", size = 1)+
scale_y_continuous(breaks = seq(0, 1, 0.25), limits = c(0, 1), expand = c(0,0))+
scale_x_continuous(breaks = c(1, 2), labels = c(expression(-infinity), expression(infinity))) +
theme_classic()+
ylab("Density")+
xlab("Odds ratio")+
theme(plot.caption = element_text(hjust = 0), plot.title.position = "plot")