如何在韩国使用红色,在其他国家使用黑色?

时间:2020-10-26 08:34:00

标签: r ggplot2 highlight

我只想在韩国将红色设置为其他国家的黑色。 你能帮我吗?

ggplot(subset(juho, Country != 'Korea'), aes(x = YEAR, y = Mean)) + 
  geom_line(aes(color = Country, group = Country)) +
  geom_line(data = subset(juho, Country == 'Korea'), 
        size = 3, linetype = 'solid', color = 'red') +
  theme_bw() +
  theme(legend.position = "") +
  scale_x_continuous(breaks = c(2000,2003,2006,2009,2012,2015)) 

enter image description here

0 个答案:

没有答案