Announcement

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

  • Remove variable name as label in,eg, catplot

    I would appreciate help.
    I would like my catplot (SSC thanks to Nick Cox) to have no left axis text (other than, in my horizontal bar chart, the category labels). I seem to have tried multiple things but have just not found how to do it (and have consulted help files etc). It's going to be really simple but it has eluded me for hours.
    Regards
    Laurence

  • #2
    You don't give any syntax or show example graphs, but I guess that something in

    Code:
    . sysuse auto
    (1978 Automobile Data)
    
    . catplot rep78, recast(bar)
    
    . catplot rep78, recast(bar) ytitle("")
    
    . catplot rep78,  l1title("")
    illustrates and solves your perceived problem. Note that it is documented in the help that

    Note: any categorical axis title that appears by default is produced by
    l1title() with hbar or dot or by b1title() with bar or the (otherwise undocumented) vertical
    option.
    while looking at the code (which is short) with

    Code:
    viewsource catplot.ado
    would also show catplot's option choices.
    Last edited by Nick Cox; 26 Mar 2015, 05:48.

    Comment


    • #3
      Thanks Nick (sorry, realised the code would help after I posted). That's it: l1title (always find it with help after I know what I'm looking for).
      Regards
      Laurence

      Comment

      Working...
      X