Announcement

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

  • graph editing

    I created the attached data file from data on the web. I typed::

    hbar pctdiff,l(name)

    using Nick Cox's hbar do file. I got a graph and wanted to edit it but got the message repeatedly that: the graph is not a live graph and cannot be edited. I have been able to do this before but don't understand why I can't do it again; Any help would be appreciated. I have tried to do this recreating the graph and using an old one using both Stata 15 and 16.

    Any help would be appreciated.

    Ric Uslaner
    Attached Files

  • #2
    hbar from SSC is (or more precisely was) a command for Stata 6 (defined by an ado file -- not a .do file) that goes back to 1997 or so. It still works but its graph files are completely inconsistent with the completely different graph command introduced in Stata 8. So that error message, although not directly informative, is predictable. The current graph editor can't make sense of the file.

    It could be edited, possibly, with the separate graph editor executable issued by the company about 30 years ago. I lost my copy of the software several machines ago and it's certainly not a maintained product,

    hbar was about 600 lines of code and was a lot of work. But I abandoned it without much regret when graph hbar was introduced.

    graph hbar was certainly not written to reproduce hbar even though hbar (and hplot) may have had some indirect influence on the official commands.

    No matter, as it is hard to believe that you can't do as well or indeed much better with the commands we have had since 1983. With say

    [CODE]. sysuse auto, clear
    (1978 Automobile Data)
    [/CODE}

    the result of

    Code:
    . hbar mpg if foreign, l(make)
    is similar to that of

    Code:
    . graph hbar (asis) mpg if foreign, over(make)
    Last edited by Nick Cox; 18 Apr 2021, 08:49.

    Comment

    Working...
    X