Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rolf Lund
    started a topic 360 bar chart

    360 bar chart

    Hello statalist.

    I am sorry for the double post. If a moderator sees this, they can delete my first, rather confusing, question. Instead of dragging all sort of code in here, I will describe what I’m looking for and ask if anyone knows of a program that does this very specifc thing. Here are some example data;

    Code:
    Input category value
    1 .4
    2 .6
    3 .2
    4 .8
    5 .9
    6 .1
    7 .2
    8 .2
    end
    I know the image below does not correspond to the values shown in my example (because I drew these below graphs..... not in Stata). I want the categories count to correspond to the spikes and the length of the bar to correspond to value variable. Any idea how to do this?

    Click image for larger version

Name:	477E8610-FE1A-48AE-BAEE-83F1F9508642.jpeg
Views:	1
Size:	96.6 KB
ID:	1423879

  • Nick Cox
    replied
    On #1: https://www.statalist.org/forums/help#adviceextras gives advice on bumping.

    We don't delete threads because they are no longer useful. Who knows where to draw the line on that?

    Leave a comment:


  • Sergiy Radyakin
    replied
    Yes, Rolf, the option axelc controls the color of the axes, and supplying none suppresses their rendering. You can furthermore suppress the default note that appears under the graph by adding note("") . Other options or interactive editing with the graph editor allow to further tweak the look of the chart. Best, Sergiy Radyakin

    Leave a comment:


  • Rolf Lund
    replied
    Okay, I figured it out. I just had to understand the options better. For anyone interested, it's:

    Code:
     
     radar category, radial(value) lw(*5) legend(off) r(0 .25 .5 .75 1)

    Leave a comment:


  • Rolf Lund
    replied
    Thank you, Sergiy. Quick follow up, how did you make the web on pic 1?

    Leave a comment:


  • Sergiy Radyakin
    replied
    Code:
    clear
    
    input category value
    1 .4
    2 .6
    3 .2
    4 .8
    5 .9
    6 .1
    7 .2
    8 .2
    end
    
    radar category, radial(value) lw(*5) legend(off) axelc(none)
    This code uses -radar- module written by Adrian Mander, MRC Biostatistics Unit, Cambridge, UK.

    Best, Sergiy Radyakin

    Leave a comment:


  • Rolf Lund
    replied
    Yes! How did you create those?

    Leave a comment:


  • Sergiy Radyakin
    replied
    Is any of the following 2 resembling what you are looking for?

    Click image for larger version

Name:	360chart.png
Views:	1
Size:	58.8 KB
ID:	1423913
    Click image for larger version

Name:	360chart2.png
Views:	1
Size:	40.5 KB
ID:	1423914

    Leave a comment:

Working...
X