Learn R Programming

ggiraphExtra (version 0.1.0)

ggRadar: Draw a radar chart

Description

Draw a radar chart

Usage

ggRadar(data, mapping = NULL, rescale = TRUE, legend.position = "top",
  colour = "red", alpha = 0.3, size = 3, ylim = NULL,
  interactive = FALSE, ...)

Arguments

data

A data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

rescale

A logical value. If TRUE, all continuous variables in the data.frame are rescaled.

legend.position

Legend position. One of c("top","bottom","left","right","none")

colour

A name of color to be assigned as a color variable

alpha

Any numbers from 0 (transparent) to 1 (opaque)

size

Point size

ylim

A numeric vector of length 2, giving the y coordinates ranges.

interactive

A logical value. If TRUE, an interactive plot will be returned

...

other arguments passed on to geom_point

Value

An interactive radar plot

Examples

Run this code
# NOT RUN {
require(ggplot2)
require(ggiraph)
require(plyr)
require(reshape2)
ggRadar(data=iris,aes(group=Species))
ggRadar(data=mtcars,interactive=TRUE)
ggRadar(data=mtcars,aes(colour=am),interactive=TRUE)
# }

Run the code above in your browser using DataLab