我想给我的馅饼上色,但#numbers 不起作用。我究竟做错了什么?

I would like to color my pie but the #numbers doesn't work. What am I doing wrong?

我想给我的馅饼上色,但#numbers 不起作用。我究竟做错了什么? 该代码给出了馅饼,但带有其他颜色。我在 R 中使用“Palmerpenguins”包。

slices <- c (146,119,68)
lbls <- c ("Adelie 146", "Gentoo 119", "Chinstrap 68")
clrs <- c ("#527f85", "#f08fff", "#7d9cf6")

pie(slices, labels= lbls, main= "Aantallen Pinguins per soort", clockwise = TRUE)

包括 col = clrs :

slices <- c (146,119,68)
lbls <- c ("Adelie 146", "Gentoo 119", "Chinstrap 68")
clrs <- c ("#527f85", "#f08fff", "#7d9cf6")

pie(slices, labels= lbls, main= "Aantallen Pinguins per soort", 
    clockwise = TRUE, col = clrs)