(ggplot(data = simstudy)+geom_histogram(aes(x = U, y =after_stat(density)),fill ='goldenrod', bins =40)+geom_line(aes(x = U, y = fU), col ='cornflowerblue', size =1)+theme_classic(base_size =16)+xlim(c(0,30))+facet_wrap(~lambda, scales ='free_y', labeller = label_both))
Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
Warning: Removed 8 rows containing missing values or values outside the scale range
(`geom_bar()`).