Announcement

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

  • #16
    Originally posted by @Hannah Simon View Post
    Simon Heß
    Thanks for sharing this really useful code, which I came across just now.

    Unfortunately, it took me quite some time to get the color code right, which I think is due to the fact that the color format in the Stata command is grb (green red blue) instead of rgb (red green blue). At least for me it worked with this revised order.
    Ugh. I'm super sorry. Somehow that symbol_opacity option had screwed things up. It wasn't actually grb, but CMYK with K being set to symbol opacity. The new code on github now fixes this (and the symbol_opacity) so that
    Code:
    colorscatter x y z ,  rgb_low(0 255 0)  rgb_high(0 0 255)  symbol_opacity(40) scatter_options(mlwidth(vthin))
    would now give you as it should:
    Click image for larger version

Name:	Untitled.png
Views:	1
Size:	161.3 KB
ID:	1483630


    Sorry for the inconvenience.

    I have to repeat that colorscatter is a super hacky solution as I am not putting much effort into it.

    I am still baffled that Stata still does not bother to implement this fairly standard (and often requested) feature into -twoway scatter- per default....

    Comment

    Working...
    X