RadialPlot: Radarplot

Description Usage Arguments Value Examples

View source: R/Radar_Plot_Eni.R

Description

Radarplot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RadialPlot(
  plot.data,
  axis.labels = colnames(plot.data)[-1],
  grid.min = 0,
  grid.mid = 4.5,
  grid.max = 10,
  centre.y = grid.min - ((1/9) * (grid.max - grid.min)),
  polygon = FALSE,
  plot.extent.x.sf = 1.2,
  plot.extent.y.sf = 1.2,
  x.centre.range = 0.02 * (grid.max - centre.y),
  label.centre.y = FALSE,
  grid.line.width = 0.5,
  gridline.min.linetype = "longdash",
  gridline.mid.linetype = "longdash",
  gridline.max.linetype = "longdash",
  gridline.min.colour = "grey",
  gridline.mid.colour = "blue",
  gridline.max.colour = "grey",
  gridline.mid.alpha = 1,
  grid.label.size = 4,
  gridline.label.offset = -0.02 * (grid.max - centre.y),
  label.gridline.min = FALSE,
  axis.label.offset = 1.15,
  axis.label.size = 3,
  axis.line.colour = "snow2",
  group.line.width = 1,
  group.point.size = 4,
  background.circle.colour = "yellow",
  background.circle.transparency = 0.2,
  plot.legend = if (nrow(plot.data) > 1) TRUE else FALSE,
  legend.title = "Übersicht",
  legend.text.size = grid.label.size
)

Arguments

plot.data

Daten

axis.labels
grid.min

Mindestwert der Daten bzw. Darstellung

grid.mid
grid.max

Maximalwert der Daten bzw. Darstellung

centre.y

meist auf 0 zentriert

polygon

Füllung oder keine

plot.extent.x.sf
plot.extent.y.sf
x.centre.range
label.centre.y
grid.line.width
gridline.min.linetype
gridline.mid.linetype
gridline.max.linetype
gridline.min.colour
gridline.mid.colour
gridline.max.colour
gridline.mid.alpha
grid.label.size
gridline.label.offset
label.gridline.min
axis.label.offset
axis.label.size
axis.line.colour
group.line.width
group.point.size
background.circle.colour
background.circle.transparency
plot.legend
legend.title
legend.text.size

Value

Radar Graphik

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
tb <- data.frame(group = c("Januar", "November"), Aktivität = c(3, 
2.4), Interaktion = c(4L, 2L), Ankommen = c(4.2, 1.5), Gehen = c(3L, 1L),
Spiele = c(3.5, 3), Begrüßungslied = c(3.6, 2.8), 
Stimmung = c(4L, 3L), Essverhalten = c(3, 1.8), Konfliktsituation = c(3.8,2.2))
RadialPlot(tb[1:6],centre.y = 0,label.gridline.min = F,group.line.width = .5,group.point.size = 2,background.circle.colour = "white",grid.label.size = 0,polygon = FALSE,plot.extent.x.sf = 1.3,legend.title = "Kind A")+scale_alpha(guide='none')
# mit Füllung:
RadialPlot(tb,grid.min = 0,grid.max = 4.5,centre.y = 0,label.gridline.min = F,group.line.width = .5,group.point.size = 2,background.circle.colour = "white",grid.label.size = 0,polygon = TRUE,plot.extent.x.sf = 1.3,axis.line.colour = "snow2")+
ggtitle("Entwicklung Kind A") + 
  scale_fill_discrete("Kind A") +
    scale_colour_discrete("Kind A")+scale_alpha(guide='none')

lillion/emittr documentation built on May 10, 2020, 7:23 a.m.