首页 > 解决方案 > ggplot geom_bar - 如何限制 Y 轴 - 以前的建议不起作用?

问题描述

无法在 ggplot 上启动 Y 轴

一旦我指定 c(15000000,max(variable)) 我就会失去所有的视觉效果

  aes(x= ecomm_data3$Month, y = ecomm_data3$Value, fill = ecomm_data3$Year) +
  geom_bar(stat = 'identity', position = "dodge") +
  scale_y_continuous(name="E-comm Value £", labels = comma) +
  labs(title = "Total e-comm value", x = "Date") +
  scale_fill_manual("Year", values = c("18" = "steelblue", "19" = "orange"))```

Loss of visual completely

标签: rggplot2

解决方案


推荐阅读