我试图找出为什么沿 x 轴出现一条紫色线,该线与我的图例中的“Prypchan,Lida”颜色相同。我查看了数据,没有发现任何问题。
ggplot(LosDoc_Ex, aes(x = LOS)) +
geom_density(aes(colour = AttMD)) +
theme(legend.position = "bottom") +
xlab("Length of Stay") +
ylab("Distribution") +
labs(title = "LOS Analysis * ",
caption = "*exluding Residential and WSH",
color = "Attending MD: ")
Run Code Online (Sandbox Code Playgroud)