Announcement

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

  • 3D graph with spikes

    Dear Statalisters,
    I have been trying to produce a 3D graph for my data below.
    Click image for larger version

Name:	series.jpg
Views:	1
Size:	133.7 KB
ID:	1480099


    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input long id_all float(x y repetition)
    10102  9  1  5
    10201  1 15  1
    10403  4  1  3
    10601 15 15 15
    10802  1  1  5
    10902  3  5  1
    11001  7 12  2
    11102  8  8  1
    11202 12  8  1
    11302 15  3  2
    11402 15 15 15
    11601  9 10  2
    11701  9  1  5
    11802  8  6  1
    11901 15 15 15
    12002 15 15 15
    end
    what I am trying to do is get (x,y) points on the graph and based on the repetition variable. the point will get height or not. I have been through graph3d and scat3 and few other commands but none of them seem to give the results that I am looking for.

    The following image is what I got.



    If my words aren't clear, please check the top image. If you people need further information/clarification please let me know.

    Kind regards,
    Anustup
    Last edited by Anustup Kundu; 22 Jan 2019, 09:26.

  • #2
    I somehow couldn't manage to upload the result that I got in my original thread. Please find it in this one.
    Attached Files

    Comment

    Working...
    X