spiderplot: Function spiderplot

spiderplotR Documentation

Function spiderplot

Description

Plots a radar chart based on a numeric vector.

Usage

spiderplot(
  x = NULL,
  lower = NULL,
  upper = NULL,
  weights = NULL,
  names = NULL,
  main = NULL,
  max = 1,
  min = 0,
  xylim = 1.5,
  add.scale = T,
  col = NULL,
  col2 = NULL,
  border = NA,
  mode = 0,
  arrows.lwd = 3,
  arrows.length = 0.01,
  add = F,
  add.numbers = F,
  numbers = 2,
  add.grid = T,
  add.labels = T,
  line.type = "o",
  grid.detail = 1,
  grid.points = NULL,
  shift = 0,
  arrows.transparency = 0.7
)

Arguments

x

Numeric vector containing the values to be displayed. Values should be between 0 and 1.

lower

Numeric vector of the same length as x, containing the values to be displayed as an lower bound. Not displayed if NULL (if !is.null(x)).

upper

Numeric vector of the same length as x, containing the values to be displayed as an upper bound. Not displayed if NULL (if !is.null(x)).

weights

Numeric vector of the same length as x, containing the relative length of dimensions. Values should be between 0 and 1.

main

Character vector with one element containing the barplot's title. Defaults to NULL

max

Numeric value determining the largest possible value of the data to be displayed. Defaults to 1.

xylim

Numeric value determining both upper and lower limits on both x and y axis (xlim & ylim). Defaults to 1.5.

col

Character or rgb value specifying the line's color. If NULL (default) col is set to "#00547A".

col2

Character or rgb value specifying the color of the area between upper and lower bound. If NULL (default) col2 is set to quantqual::cols2(col).

border

Character or rgb value specifying the color of the polygon border. Defaults to NA.

mode

Numeric value specifying whether to draw a polygon (mode=1) or arrows (mode!=1), and whether to draw a polygon for x (mode>=0) or not (mode<0). Defaults to 0.

arrows.lwd

Numeric value specifying lwd for arrows (if any). Defaults to 2.

arrows.length

Numeric value specifying lwd for arrows (if any). Defaults to .01.

add

Logical value specifying whether to add graph to the current device. Defaults to F.

add.numbers

Logical value specifying whether to add numbers to labels. Defaults to F.

add.grid

Logical value specifying whether to add numbers to add grid lines. Defaults to T.

add.labels

Logical value specifying whether to add labels to the plot. Defaults to T.

Details

Plots a radar chart based on a numeric vector. Each dimension of the radar chart can be assigned a weight and/or an upper and lower bound.

Examples

spiderplot()

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.