0

I'd like to reproduce something like this plot in R, maybe a little simpler:

http://macroblog.typepad.com/.a/6a00d8341c834f53ef017eea036eda970d-popup

The relevant command seems to be stars, and the closest example from the stars command help seems to be

stars(mtcars[4:6, 1:5], 
      locations = c(0,0), 
      radius = FALSE, 
      key.loc=c(0,0), 
      main="Motor Trend Cars", 
      lty = 2)  

but I'd like

  1. control over color and thickness of lines,
  2. extend rays beyond the edges,
  3. include "grid lines" to show distance from origin.

Suggestions?

2
  • 1
    This post explains how to make radar charts with ggplot.
    – Lenwood
    Aug 9, 2013 at 18:27
  • @Lenwood: Thanks a lot. That led me to me to the fmsb package, which works. This example needs some tweaking, but it makes the point: library("fmsb") radarchart(mtcars[4:8,1:5], maxmin=FALSE, centerzero=TRUE)
    – DKB at NYU
    Aug 12, 2013 at 15:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.