radarchart {lazy.tools} | R Documentation |
This is a modified version of radarchart
in fmsb
package.
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), ...)
df |
data frame |
var |
sas-like abbreviated list of variables to be used. |
axistype |
The type of axes, specified by any of 0:5. |
seg |
The number of segments for each axis (default 4). |
pty |
A vector to specify point symbol: |
pcol |
A vector of color codes for plot data: |
plty |
A vector of line types for plot data: |
plwd |
A vector of line widths for plot data: |
pdensity |
A vector of filling density of polygons: |
pangle |
angle |
pfcol |
A vector of color codes for filling polygons: |
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). |
vlabels |
Character vector for the names for variables. |
caxislabels |
Character vector for center axis labels, |
paxislabels |
Character vector for around-the-chart (peripheral)
labels, |
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 |
None
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) )