Announcement

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

  • Unicode include emoji

    For better or worse, Unicode includes emoji.

    Code:
    sysuse auto, clear
    gen lab = "👽" if foreign
    replace lab = "😃" if !foreign
    
    gr twoway scatter mpg price, ///
        mlab(lab) msym(none) mlabpos(0) ///
        text( 35 12000 "😃 Domestic" "👽 Foreign",  ///
        just(left) place(east) box margin(small) fcolor(none) linegap(vsmall))
    I'm still deciding on whether this is the first reason I've found to like emoji or the first reason to regret Stata's Unicode support.

    Attached Files

  • #2
    We had some fun with emoji in Stata graph too. Unfortunately, the font support for emoji is very platform dependent. Hence only Stata on Mac is able to produce the fun looking color emoji symbols.
    Last edited by Hua Peng (StataCorp); 22 Apr 2015, 07:56.

    Comment


    • #3
      Could be helpful if you're doing a study on emotion and wanted your graph to show something like a pseudo-Chernoff face?

      Comment


      • #4
        Yeah, I was thinking about the Chernoff thing. Also maybe 😄 for p less than 0.05, and 🎓 for p less than 0.05 in a dissertation.

        Comment


        • #5
          I'd like to see this used with nations' flags in place of text labels, e.g. in stuff like: https://www.statalist.org/forums/for...graphing-issue
          Has anyone done this?

          Comment

          Working...
          X