1
나는이 같은 막대 차트를 만드는 오전에 막대 그래프 :포주 미리 정의 된 색상
cyl.am <- ggplot(mtcars, aes(x = factor(cyl), fill = factor(am)))
cyl.am +
geom_bar()
난 내 자신의 색상으로 양념을 약간 싶습니다. 그러나 내가 할 때 :
cbbPalette <- c("#000000", "#E69F00")
cyl.am +
geom_bar() +
scale_fill_brewer(palette = cbbPalette)
나는 무엇이 잘못 되었습니까?
Warning messages:
1: In if (!palette %in% unlist(brewer)) { :
the condition has length > 1 and only the first element will be used
2: In pal_name(palette, type) : Unknown palette #000000#E69F00