radarchart {lazy.tools}R Documentation

Radar Chart

Description

This is a modified version of radarchart in fmsb package.

Usage

radarchart(df, var = NULL, axistype = 4, seg = 4, pty = 16,
  pcol = 1:8, plty = 1:8, plwd = 1, pdensity = NULL, pangle = 45,
  pfcol = NA, cglty = 3, cglwd = 1, cglcol = "navy",
  axislabcol = "blue", title = "", centerzero = FALSE,
  vlabels = NULL, caxislabels = NULL, paxislabels = NULL,
  frame = 1, clockwise = 1, caxisoffset = -0.1, caxiscex = 0.9,
  legend = 1, lpos = c(1.1, -0.1), lcex = 0.8, llwd = 1,
  standard = 0, nobspc = 0, down = 1, across = 1, mar = c(1, 1,
  1, 1), ...)

Arguments

df

data frame

var

sas-like abbreviated list of variables to be used.

axistype

The type of axes, specified by any of 0:5.
0 means no axis label.
1 means center axis label only. 2 means around-the-chart label only.
3 means both center and around-the-chart (peripheral) labels.
4 is *.** format of 1, 5 is *.** format of 3. Default is 0.

seg

The number of segments for each axis (default 4).

pty

A vector to specify point symbol:
Default 16 (closed circle), if you don't plot data points,
it should be 32. This is repeatedly used for data series.

pcol

A vector of color codes for plot data:
Default 1:8, which are repeatedly used.

plty

A vector of line types for plot data:
Default 1:6, which are repeatedly used.

plwd

A vector of line widths for plot data:
Default 1, which is repeatedly used.

pdensity

A vector of filling density of polygons:
Default NULL, which is repeatedly used.

pangle

angle

pfcol

A vector of color codes for filling polygons:
Default NA, which is repeatedly usd.

cglty

Line type for radar grids: Default 3, which means dotted line.

cglwd

Line width for radar grids: Default 1, which means thinnest line.

cglcol

Line color for radar grids: Default "navy"

axislabcol

Color of axis label and numbers: Default "blue"

title

plot title string.

centerzero

Logical. If true, this function draws charts with scaling originated from (0,0).
If false, charts originated from (1/segments). Default FALSE.

vlabels

Character vector for the names for variables.
If NULL, the names of the variables as colnames(df) are used.

caxislabels

Character vector for center axis labels,
overwriting values specified in axistype option.
If NULL, the values specified by axistype option are used.

paxislabels

Character vector for around-the-chart (peripheral) labels,
overwriting values specified in axistype option.
If NULL, the values specified by axistype option are used.

frame

= 1 to draw frame around the graph

clockwise

= 1 if the graph places the variables in clockwise from the top

caxisoffset

offset

caxiscex

cex

legend

= 1 to display legend.

lpos

upper left corner of the legend.

lcex

font size for the legend.

llwd

line width for the legend.

standard

= 1 to standardize the variables

nobspc

# of observations in one chart.

down

# of graphs in a column.

across

# of graphs in a row.

mar

margins for multiple graphs per page.

...

additional parameters for plot

Value

None

Examples

data=data.frame(a=c(1,2,3,4),b=c(0,1,0,1),c=c(4,3,2,1))
radarchart( data, nobspc=2, across=2, lpos=c(.9,.1) )


[Package lazy.tools version 0.1.3 Index]