Announcement

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

  • Nick Cox
    replied
    Thanks to Kit Baum, a fixed version is now on SSC.

    Leave a comment:


  • Nick Cox
    replied
    Thanks very much. That expression is idiomatic in Britain too.

    Leave a comment:


  • Clyde Schechter
    replied
    Nick,

    I don't know if they have this expression on your side of the pond, but I would classify -subsetplot- as "the best invention since sliced bread." I've already used it a half dozen times--it's the program I've been waiting for for years and didn't even realize I needed.

    Thanks.

    Leave a comment:


  • Nick Cox
    replied
    Daniel: I agree with your diagnosis that the subtitle() option needs a fix. I am not going necessarily going to fix it in exactly the same way!

    Leave a comment:


  • Stefan Gawrich
    replied
    Thanks Daniel,

    it works.
    I should have looked into the code before posting.

    Thanks again, Nick. I especially like -subsetplot- with line graphs. Very nice.


    Stefan Gawrich
    Dillenburg
    Germany



    Leave a comment:


  • daniel klein
    replied
    Guess both are caused by line 84 of subsetplot.ado which calls the subtitle option as

    Code:
    ... subtitle(`which')
    This should be an easy fix, and I would suggest

    Code:
    ... subtitle(`"`macval(which)'"')
    because macval() is a trick to also deal with single (unmatched) left quotes in labels. Something that cannot be achieved with compound quotes only.


    By the way, very nice program, Nick. Always happy to read your code for graphic commands, to get and learn from the ideas/technique behind.

    Best
    Daniel

    Leave a comment:


  • Nick Cox
    replied
    Stefan: Thanks for your interest. I can reproduce problem 2 but not (yet?) problem 1. You have unearthed a small bug. I will flag when a fixed version is posted on SSC.

    Leave a comment:


  • Stefan Gawrich
    replied
    The forum -itrim-s text so the first example of my last post worked.

    Here's an altered example:

    sysuse auto, clear
    label define foreignlabel3 0 "1________10________20__(manufacturer)" 1 "foreign", replace
    label values foreign foreignlabel3
    subsetplot scatter price mpg,by(foreign)

    parentheses do not balance
    r(198);



    Best wishes

    Stefan Gawrich
    Dillenburg
    Germany

    Leave a comment:


  • Stefan Gawrich
    replied
    Thanks Nick,

    this is very nice new graph!

    Unfortunately I encounter some problems with value labels of the by() var. (Stata 13.1 MP on Win7)


    1) A left parenthesis in a value label within the first 32 chars of a value label without a right parenthesis within 32 chars leads to an error.

    Example:

    sysuse auto, clear
    label define foreignlabel3 0 "1 10 20 (manufacturer)" 1 "foreign"
    label values foreign foreignlabel3
    subsetplot scatter price mpg,by(foreign)

    parentheses do not balance
    r(198);


    2) Also the use of a comma seems to be misinterpreted.

    sysuse auto, clear
    label define foreignlabel3 0 "Detroit, Michigan" 1 "foreign"
    label values foreign foreignlabel3
    subsetplot scatter price mpg,by(foreign)

    option Michigan not allowed
    r(198);


    Best wishes

    Stefan Gawrich
    Dillenburg
    Germany





    Leave a comment:


  • Nick Cox
    replied
    Thanks.

    Leave a comment:


  • Roman Mostazir
    replied
    Actually, this is cleverer than I thought. Brilliant !!

    Leave a comment:


  • Nick Cox
    replied
    The entire rationale of subsetplot is to include the rest of the data as backdrop, in this case as a set of grey lines!!! If you don't want that, just use some appropriate official command, e.g line with a by() option, as documented.

    Leave a comment:


  • Roman Mostazir
    replied
    That's working perfect. Thanks Nick and Kit. Just a query. In the spaghetti plot above, the orange line refers to company specific line for investment over years. But what those grey lines refer to? Is there any way to skip them?

    Leave a comment:


  • Nick Cox
    replied
    Glitch now fixed, thanks to Kit. ssc install subsetplot should work (so long as you have sufficient access to the internet, naturally).

    Leave a comment:


  • Nick Cox
    replied
    Thanks for the report. There's a small temporary glitch. The .ado and the .sthlp are there. but not yet a package file. You can copy the files across to a directory or folder of your choice by using ssc copy, or wait for the glitch to be fixed. I'll alert Kit Baum.

    Leave a comment:

Working...
X