我正在尝试将正态分布曲线叠加到 R 中的直方图上。我知道这是一个以前被问过的问题,但我很难找到适合我的解决方案。
这是我的代码:
hist(input_data$"X109_scalesraw_23", freq = TRUE, breaks = 30,
col = "cadetblue", xlim = c(0,30), ylim = c(0,150),
main = "023", xlab = "score")
Run Code Online (Sandbox Code Playgroud)