Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ploticus] proc bars "data suppressed" AND "data missing"?

Expand Messages
  • Steve Grubb
    Daniel, maybe if the status was present in a field in the data file it could be printed... I think there s a way to print contents of a data field above each
    Message 1 of 3 , Feb 22, 2012
      Daniel, maybe if the status was present in a field in the data file it could be printed... I think there's a way to print contents of a data field above each bar.

      Steve

      On Sat, Feb 4, 2012 at 9:18 PM, Daniel <dagoldman@...> wrote:
       

      I put an asterisk to indicate "data suppresssed" as follows:

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@12 = 1
      outline: color=black width=0.1000
      lenfield: 11
      cluster: 5 / 5
      barwidth: 0.4
      legendlabel: T
      color: rgb(0.633,0.801,0.352)

      -------------

      My question: I'd like to put a dash to indicate "data missing"
      (and still put an asterisk if "data suppressed"). Is there
      some way I can do that? It seems that within a proc bars I
      can just have one labelword command, controlled by one
      labelselect command. So I don't see how to do it.

      Any suggestions or hints appreciated.

      -------------

      Here is the full script. I put resulting image in the photo album.

      #proc settings
      xml_encoding: utf-8
      units: cm

      #proc page
      font: VeraMono
      crop: 0 0 24.2900 6.2200
      textsize: 10

      backgroundcolor: xFFFFE0

      #proc getdata
      data:
      0.0000 "W" 62.642157 0 65.549130 0 52.393820 0 47.092315 0 61.906836 0
      2.4000 "B" 41.118282 0 43.125383 0 48.507464 0 0.000000 1 43.162444 0
      4.8000 "O" 52.109098 0 47.230129 0 0.000000 1 0.000000 1 50.691946 0
      7.2000 "M" 0.000000 1 0.000000 1 0.000000 1 0.000000 1 45.502170 0
      9.6000 "H" 42.962194 0 59.280625 0 42.004545 0 0.000000 1 47.593055 0
      12.0000 "Unk" 0.000000 1 0.000000 1 0.000000 1 0.000000 0 39.547385 0
      14.4000 "T" 58.486053 0 60.454924 0 50.090206 0 35.953255 0 57.206955 0

      #proc categories
      axis: x
      datafield: 1

      #proc areadef
      location: 1.4500 1.5000
      box: 19.2000 4.0000
      yscaletype: linear
      xscaletype: categories
      xrange: categories
      yrange: 0 65.549130

      #proc xaxis
      tics: yes
      selflocatingstubs: datafields=1,2
      label: Race
      ticlen: 0.0500
      labeldistance: 0.7800

      #proc yaxis
      stubs: inc
      stubcull: 0.3600
      stubformat: %.0f
      label: % Yes
      ticlen: 0.0500
      grid: color=gray(0.6) style=1 dashscale=1.0 width=0.1
      labeldistance: 0.9300

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@4 = 1
      outline: color=black width=0.1000
      lenfield: 3
      cluster: 1 / 5
      barwidth: 0.4
      legendlabel: 00.0-24.9
      color: rgb(0.930,0.387,0.387)

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@6 = 1
      outline: color=black width=0.1000
      lenfield: 5
      cluster: 2 / 5
      barwidth: 0.4
      legendlabel: 25.0-29.9
      color: rgb(0.234,0.699,0.441)

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@8 = 1
      outline: color=black width=0.1000
      lenfield: 7
      cluster: 3 / 5
      barwidth: 0.4
      legendlabel: 30.0-98.0+
      color: rgb(0.797,0.797,0.797)

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@10 = 1
      outline: color=black width=0.1000
      lenfield: 9
      cluster: 4 / 5
      barwidth: 0.4
      legendlabel: Unk
      color: rgb(0.801,0.504,0.383)

      #proc bars
      hidezerobars: no
      locfield: 1
      labelzerovalue: yes
      labelword: *
      labelselect: @@12 = 1
      outline: color=black width=0.1000
      lenfield: 11
      cluster: 5 / 5
      barwidth: 0.4
      legendlabel: T
      color: rgb(0.633,0.801,0.352)

      #proc legend
      colortext: no
      outlinecolors: yes
      format: multiline
      swatchsize: 0.3600
      location: 21.7300 4.9600
      separation: 0.0000

      #proc annotate
      outline: no
      textdetails: align=L size=10
      location: 21.7300 5.6800
      text: Body Mass
      Index

      #proc annotate
      outline: no
      textdetails: align=L size=8
      location: 0.1600 0.1600
      text: 204NJWTF-1


    • Daniel
      Hi Steve, Yes, you re right. I just didn t read the docs carefully enough. Make separate data field. Use labelfield to specify field. Put * in the field if
      Message 2 of 3 , Apr 4, 2012
        Hi Steve,

        Yes, you're right. I just didn't read the
        docs carefully enough.

        Make separate data field.
        Use labelfield to specify field.

        Put * in the field if data suppressed.
        Put # in the field if data missing.
        If good data, put some other symbol.
        Use labelselect to only print * and #.

        Thanks,
        Daniel

        --- In ploticus@yahoogroups.com, Steve Grubb <stevegrubb@...> wrote:
        >
        > Daniel, maybe if the status was present in a field in the data file it
        > could be printed... I think there's a way to print contents of a data field
        > above each bar.
        >
        > Steve
        >
        > On Sat, Feb 4, 2012 at 9:18 PM, Daniel <dagoldman@...> wrote:
        >
        > > **
        > >
        > >
        > > I put an asterisk to indicate "data suppresssed" as follows:
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@12 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 11
        > > cluster: 5 / 5
        > > barwidth: 0.4
        > > legendlabel: T
        > > color: rgb(0.633,0.801,0.352)
        > >
        > > -------------
        > >
        > > My question: I'd like to put a dash to indicate "data missing"
        > > (and still put an asterisk if "data suppressed"). Is there
        > > some way I can do that? It seems that within a proc bars I
        > > can just have one labelword command, controlled by one
        > > labelselect command. So I don't see how to do it.
        > >
        > > Any suggestions or hints appreciated.
        > >
        > > -------------
        > >
        > > Here is the full script. I put resulting image in the photo album.
        > >
        > > #proc settings
        > > xml_encoding: utf-8
        > > units: cm
        > >
        > > #proc page
        > > font: VeraMono
        > > crop: 0 0 24.2900 6.2200
        > > textsize: 10
        > >
        > > backgroundcolor: xFFFFE0
        > >
        > > #proc getdata
        > > data:
        > > 0.0000 "W" 62.642157 0 65.549130 0 52.393820 0 47.092315 0 61.906836 0
        > > 2.4000 "B" 41.118282 0 43.125383 0 48.507464 0 0.000000 1 43.162444 0
        > > 4.8000 "O" 52.109098 0 47.230129 0 0.000000 1 0.000000 1 50.691946 0
        > > 7.2000 "M" 0.000000 1 0.000000 1 0.000000 1 0.000000 1 45.502170 0
        > > 9.6000 "H" 42.962194 0 59.280625 0 42.004545 0 0.000000 1 47.593055 0
        > > 12.0000 "Unk" 0.000000 1 0.000000 1 0.000000 1 0.000000 0 39.547385 0
        > > 14.4000 "T" 58.486053 0 60.454924 0 50.090206 0 35.953255 0 57.206955 0
        > >
        > > #proc categories
        > > axis: x
        > > datafield: 1
        > >
        > > #proc areadef
        > > location: 1.4500 1.5000
        > > box: 19.2000 4.0000
        > > yscaletype: linear
        > > xscaletype: categories
        > > xrange: categories
        > > yrange: 0 65.549130
        > >
        > > #proc xaxis
        > > tics: yes
        > > selflocatingstubs: datafields=1,2
        > > label: Race
        > > ticlen: 0.0500
        > > labeldistance: 0.7800
        > >
        > > #proc yaxis
        > > stubs: inc
        > > stubcull: 0.3600
        > > stubformat: %.0f
        > > label: % Yes
        > > ticlen: 0.0500
        > > grid: color=gray(0.6) style=1 dashscale=1.0 width=0.1
        > > labeldistance: 0.9300
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@4 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 3
        > > cluster: 1 / 5
        > > barwidth: 0.4
        > > legendlabel: 00.0-24.9
        > > color: rgb(0.930,0.387,0.387)
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@6 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 5
        > > cluster: 2 / 5
        > > barwidth: 0.4
        > > legendlabel: 25.0-29.9
        > > color: rgb(0.234,0.699,0.441)
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@8 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 7
        > > cluster: 3 / 5
        > > barwidth: 0.4
        > > legendlabel: 30.0-98.0+
        > > color: rgb(0.797,0.797,0.797)
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@10 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 9
        > > cluster: 4 / 5
        > > barwidth: 0.4
        > > legendlabel: Unk
        > > color: rgb(0.801,0.504,0.383)
        > >
        > > #proc bars
        > > hidezerobars: no
        > > locfield: 1
        > > labelzerovalue: yes
        > > labelword: *
        > > labelselect: @@12 = 1
        > > outline: color=black width=0.1000
        > > lenfield: 11
        > > cluster: 5 / 5
        > > barwidth: 0.4
        > > legendlabel: T
        > > color: rgb(0.633,0.801,0.352)
        > >
        > > #proc legend
        > > colortext: no
        > > outlinecolors: yes
        > > format: multiline
        > > swatchsize: 0.3600
        > > location: 21.7300 4.9600
        > > separation: 0.0000
        > >
        > > #proc annotate
        > > outline: no
        > > textdetails: align=L size=10
        > > location: 21.7300 5.6800
        > > text: Body Mass
        > > Index
        > >
        > > #proc annotate
        > > outline: no
        > > textdetails: align=L size=8
        > > location: 0.1600 0.1600
        > > text: 204NJWTF-1
        > >
        > >
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.