Learn R Programming

⚠️There's a newer version (0.2) of this package.Take me there.

ggradar

ggradar allows you to build radar charts with ggplot2. This package is based on Paul Williamson's code, with new aesthetics and compatibility with ggplot2 2.0.

It was inspired by d3radaR, an htmlwidget built by timelyportfolio.

Install ggradar

devtools::install_github("ricardo-bion/ggradar", 
                          dependencies=TRUE)

Use ggradar

library(ggradar)

suppressPackageStartupMessages(library(dplyr))
library(scales)
library(tibble)

mtcars %>%
     rownames_to_column( var = "group" ) %>%
     mutate_at(vars(-group),funs(rescale)) %>%
     tail(4) %>% select(1:10) -> mtcars_radar

ggradar(mtcars_radar) 

knitr::kable(mtcars_radar,format="markdown") 
groupmpgcyldisphpdratwtqsecvsam
29Ford Pantera L0.22978721.00.69817910.74911660.67281110.42367680.000000001
30Ferrari Dino0.39574470.50.18433520.43462900.39631340.32140120.119047601
31Maserati Bora0.19574471.00.57345971.00000000.35944700.52595240.011904801
32Volvo 142E0.46808510.00.12446990.20141340.62211980.32395810.488095211

Copy Link

Version

Version

0.1

License

GPL

Maintainer

Ricardo Bion

Last Published

June 7th, 2021

Functions in ggradar (0.1)

ggradar

ggradar