Announcement

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

  • Transparency in heatplot

    I am using Ben Jann's heatplot and I would like to have the entire graph transparent to some degree (like 50%). However, I am not sure where to include this option in the code. I know it works, because it does so when I adjust it manually afterwards. I would like to be the background grid to be partially visible through the colours. A simple example:

    Code:
    webuse nhanes2, clear
    hexplot weight height
    Thanks!
    Best wishes

    Stata 18.0 MP | ORCID | Google Scholar

  • #2
    heatplot is from SSC (FAQ Advice #12).

    Code:
    webuse nhanes2, clear
    set scheme s1color
    hexplot weight height, color(hcl diverging, opacity(30))
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	139.4 KB
ID:	1706559

    Comment


    • #3
      Thank you Andrew, much appreciated! I forgot the "," in the parentheses with the standard theme, so I messed it up there...
      Best wishes

      Stata 18.0 MP | ORCID | Google Scholar

      Comment

      Working...
      X