小编Luk*_*ker的帖子

穿过密度图 X 轴的意外线 (r)

我试图找出为什么沿 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)

Doc 的 LOS 分析

r ggplot2 density-plot

4
推荐指数
2
解决办法
1940
查看次数

标签 统计

density-plot ×1

ggplot2 ×1

r ×1