I have a rose diagram (code below) that I plotted in ggplot but I can't figure out how to change the color of the wedges. No matter what I try they remain black. This is the first time I have ever used ggplot so it may be something very simple.
Thanks!
rose <- ggplot(mapping = aes(x = Degrees))+
stat_bin(breaks = (0:8 - 0.5)/8 * 360, color='white') +
scale_x_continuous(
breaks = 0:7/8*360,
labels = c("N", "NE", "E", "SE", "S", "SW", "W", "NW")
) +
coord_polar(start=-pi/8)
rose
You're looking for the
fillaesthetic.colorcontrols the color of lines and points. When considering shapes and polygons,colorcontrols the outer line of the shape. The aestheticfillcontrols the color inside the shape. Here's a clear example:Note that the line outside is red and the shapes themselves are skyblue.