If the first column of plot.data is already a factor, then this stops ggradar from overwriting the factor levels. This allows users to define factors levels and control the legend ordering as necessary.
df <- data.frame(a = factor(c("a", "b", "c"), levels = c("b", "c", "a")),
b = runif(3),
c = runif(3),
d = runif(3))
ggradar(df)
If the first column of plot.data is already a factor, then this stops ggradar from overwriting the factor levels. This allows users to define factors levels and control the legend ordering as necessary.