Announcement

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

  • Legend position and collapsed graph

    Hi Statalist users,

    Does anyone know how to move a legend into the region plot - or somewhere actually - and maintain the collapsed size?

    This is the look that I get but I would like to collapse the graph and maintain the legend inside the plot region. As far as I've seen the only way to respect the original size is to hide the legend which is nonsense.

    Thank you!

    Click image for larger version

Name:	Captura de pantalla 2022-04-07 a las 13.47.56.png
Views:	2
Size:	211.6 KB
ID:	1658415

  • #2
    No idea what collapsed means, but is this the result you were hoping for?
    Code:
    sysuse auto, clear
    scatter price weight mpg, legend(pos(3) ring(0)) xsize(2.5)

    Comment

    Working...
    X