title: radar chart /spider diagram with ggplot2
body: <p>I am trying to make a radar chart with ggplot2.</p>
  
  <pre><code>&gt; Test1
     Country fertility gengap   LEB
  1 Colombia      1.92   0.29 79.30
  2     Peru      1.94   0.37 78.40
  3      Min      9.23   3.83  0.00
  4      Max      1.59  23.70 78.43
  
  #normalizing the data:
  
  Test1_norm&lt;- data.frame(sapply(Test1[1:4, 2:4], scales::rescale))
  
      &gt; Test1_norm
     fertility      gengap       LEB
  1 0.04319372 0.000000000 1.0000000
  2 0.04581152 0.003417343 0.9886507
  3 1.00000000 0.151217428 0.0000000
  4 0.00000000 1.000000000 0.9890290
  </code></pre>
  
  <p>I found this code to plot a radar chart:
  <a href="http://www.cmap.polytechnique.fr/~lepennec/R/Radar/RadarAndParallelPlots.html" rel="nofollow">http://www.cmap.polytechnique.fr/~lepennec/R/Radar/RadarAndParallelPlots.html</a>
  for the mtcars-example:</p>
  
  <pre><code>   ggplot(mtcarsmelted, aes(x = variable, y = value)) +
    geom_path(aes(group = model, color = model),  size = 2) +
    theme(strip.text.x = element_text(size = rel(0.8)),
          axis.text.x = element_text(size = rel(0.8)),
          axis.ticks.y = element_blank(),
          axis.text.y = element_blank()) +
    xlab("") + ylab("") +
    guides(color = guide_legend(ncol=2)) +
    coord_polar()
  </code></pre>
  
  <p>Using the mtcars example everything works fine for me, but when I try to rewrite the code for my data I just get errors. I was trying for several hours now and I am not sure which variables I need to exchange and which have to stay like in the example.</p>
  
  <p>I would appreciate a little help a lot! I am still very new to R ;)</p>
  
  <p>Thanks everybody :)</p>