I want the tiles around the radar chart (eg mpg
, cyl
, disp
, etc) to be a different color. Is there a way to do this in ggradar? I have tried to do this with the theme()
argument but doesn't seem to be working. There is an argument within ggradar
to change font but not color.
mtcars %>%
add_rownames( var = "group" ) %>%
mutate_each(funs(rescale), -group) %>%
tail(4) %>% select(1:10) %>%
ggradar() +
theme(
axis.title = element_text(color = 'red')
)
After a look at the docs and the source code of
ggradar()
I'm afraid there is no option to set the "axis" text color. Actually the axis text is added via multiplegeom_text
layers which is the reason whytheme
options will not work.One option would be to manipulate the
ggplot
object by first identifying the "text" layers (There are a bunch of (text) layers) and afterwards setting the text colors manually: