ggradar.size: Draw Color Radar Charts

Description Usage Arguments Note Author(s) References Examples

Description

Draw Colored Radar Charts using numeric data frames. This package was derived from the ggradar package, written by Ricardo Bion. Some tiny modifications were included to the original package in order to color the radar lines according to a weigth (or size) feature (required) that is supposed to be a numeric continuous variable.

Usage

1
ggradar.size(plot.data, group_col = 1, weight_col = ncol(plot.data), grid.mid = 0.18, grid.max = 0.36, grid.min = 0, values.radar = c("0%", "18%", "36%"), legend.pos = "bottom", axis.label.size = 5, group.point.size = 2.5, group.line.width = 2, axis.label.offset = 1.15, grid.label.size = 4.5, font.radar = "ArialMT", gridline.min.colour = "grey", gridline.mid.colour = "#007A87", gridline.max.colour = "grey", background.circle.colour = "#D7D6D1", axis.line.colour = "grey40", linepoint.alpha = 0.56, background.circle.transparency = 0.2, plot.extent.x.sf = 1, plot.extent.y.sf = 1.2, gridline.min.linetype = "longdash", gridline.mid.linetype = "longdash", gridline.max.linetype = "longdash", grid.line.width = 0.5)

Arguments

plot.data

numeric data frame

group_col

number pointing to the index of the column corresponding to the grouping variable

weight_col

number pointing to the index of the column corresponding to the weight/size variable

grid.mid

size of the grid, mid point

grid.max

size of the grid, max point

grid.min

size of the grid, min point

values.radar

labels for the min, mid and max positions of the chart

legend.pos

legend position, c("bottom", "top", "left", "right")

axis.label.size

axis label size

group.point.size

chart point size

group.line.width

chart line size

axis.label.offset

axis label offset

grid.label.size

grid label size

font.radar

font used for the chart

gridline.min.colour

color for the min chart axis

gridline.mid.colour

color for the mid chart axis

gridline.max.colour

color for the max chart axis

background.circle.colour

color for the background circle

axis.line.colour

color for the radar chart axes

linepoint.alpha

radar line alpha

background.circle.transparency

background transparency

plot.extent.x.sf

plot extent x ax

plot.extent.y.sf

plot extent y ax

gridline.min.linetype

line style for the chart circle lines - min

gridline.mid.linetype

line style for the chart circle lines - mid

gridline.max.linetype

line style for the chart circle lines - max

grid.line.width

grid line width

Note

check out the ggradar package

Author(s)

Damiano Fantini, modifying Ricardo Bion's code

References

http://www.biotechworld.it/bioinf/2016/11/10/radar-charts-with-ggradar-and-ggradarsize/

Examples

1
2
3
4
5
df <- data.frame(rbind(c(0,0.13,0.22,0.52,0.12,0.32,100), 
                       c(1,0.33,0.12,0.32,0.32,0.32,2000),
                       c(2,0.53,0.02,0.12,0.42,0.32,5000)))
colnames(df) <- c("group", "f.1", "f.2", "f.3", "f.4", "f.5", "weight")
ggradar.size(plot.data = df, group_col = 1, weight_col = ncol(df), grid.max = 0.6, grid.mid = 0.3)

dami82/ggradarSIZE documentation built on May 14, 2019, 3:33 p.m.