Skip to content

Instantly share code, notes, and snippets.

@gtgrthrst
Created May 9, 2021 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtgrthrst/93ad79e8f9d002764a7f463214a3f1e2 to your computer and use it in GitHub Desktop.
Save gtgrthrst/93ad79e8f9d002764a7f463214a3f1e2 to your computer and use it in GitHub Desktop.
library(ggplot2)
library(ggradar)
library(dplyr)
library(scales)
library(tibble)
mtcars_radar <- mtcars %>%
as_tibble(rownames = "group") %>%
mutate_at(vars(-group), rescale) %>%
tail(4) %>%
select(1:10)
colnames(mtcars_radar) <- NA
ggradar(mtcars_radar) +
guides(fill = FALSE, color = FALSE, linetype = FALSE, shape = FALSE) #刪除圖例
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment