# errbar4

How to download and try this example

    Usage: pl -gif errbar4.htm
    or for PostScript: pl -ps errbar4.htm | lp

    Uses the data file rangetimes.dat

    #proc page
      #if @DEVICE in gif,png
        scale: 0.8
      #endif

    #proc areadef
      title: Elapsed time for procedure\nFirst time vs. Later times
      rectangle: 1 1 5 3.5
      yscaletype: categories
      ycategories:  Group 1\nFirst
                    Group 1\nLater
    		\
    		Group 2\nFirst
    		Group 2\nLater
    		\
    		Group 3\nFirst
    		Group 3\nLater

      xrange: 0 50
      xaxis.stubs: inc 10

      xaxis.grid: width=0.5 style=1
      xaxis.label: Total Elapsed Time\nin Minutes
      yaxis.stubs: usecategories

    //01001 iv B 071698 dawn 32 F
    //01001 m06 B 030299 rob 32 L
    #proc getdata
      file: rangetimes.dat

    #proc rangebar
      axis: x
      meanmode: yes
      select: @@3 = 1 && @@7 = F
      mediansym: shape=circle fillcolor=green style=filled
      taildetails: color=blue
      barloc: Group 1\nFirst
      datafield: 6
      nlocation: 3(s)
      #saveas: R

    #proc rangebar
      select: @@3 = 1 && @@7 = L
      barloc: Group 1\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 2 && @@7 = F
      barloc: Group 2\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 2 && @@7 = L
      barloc: Group 2\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 3 && @@7 = F
      barloc: Group 3\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 3 && @@7 = L
      barloc: Group 3\nLater
      #clone: R