Skip to content

Instantly share code, notes, and snippets.

@abikoushi
Created January 15, 2025 04:54
Show Gist options
  • Select an option

  • Save abikoushi/d703ff065fbd4ee4708e696256e840ab to your computer and use it in GitHub Desktop.

Select an option

Save abikoushi/d703ff065fbd4ee4708e696256e840ab to your computer and use it in GitHub Desktop.
radar chart using package "see"
require("tidyr")
require("dplyr")
require("ggplot2")
require("see")
dfiris <- mutate(iris, id=row_number()) %>%
pivot_longer(Sepal.Length:Petal.Width)
#head(dfiris)
ggplot(dfiris, aes(x = name, y = value, color = Species, fill=Species, group = id)) +
geom_polygon(alpha= 0, linewidth = 0.1) +
coord_radar()+
guides(colour = guide_legend(override.aes = list(alpha=1)))+
theme_minimal(15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment