Announcement

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

  • Position of the Graph on Plot Region

    Hello everyone,

    I am trying to create a map using grmap command. The map I created was on the left side of the plot region instead of the middle. Any suggestions on how to adjust the position of the map? Thank you for your help in advance!

    The codes I used are:

    spset, modify shpfile(usacounties_shp)
    grmap cbcp_ind, clnumber(2) title("Contiguous Border County-Pairs in the United States", size(med)) fcolor(eggshell red) legend(label(3 "Contiguous Border County-Pairs") label(2 "Other States") size(small) pos(7)) freestyle aspect(0.52) xlabel(, nolabels notick nogrid) xscale(lstyle(none)) xtitle("") ylabel(, nolabels notick nogrid) yscale(lstyle(none)) ytitle("") xsize(10) ysize(10)

    Click image for larger version

Name:	CBCP_Map.jpg
Views:	1
Size:	756.5 KB
ID:	1749705

  • #2
    Hey guys, I have resolved this issue using the following code:

    grmap cbcp_ind, clnumber(2) title("Contiguous Border County-Pairs in the United States", size(medlarge)) fcolor(white red*0.6) legend(label(3 "Contiguous Border County-Pairs") label(2 "Other States") size(small) pos(7)) freestyle aspect(0.55) xlabel(none) xscale(lstyle(none)) xtitle("") ylabel(none) yscale(lstyle(none)) ytitle("") xsize(10) ysize(10)

    Comment


    • #3
      Hi, my map of contingent US falls on the left hand side of page, and leaves a large blank area:
      Click image for larger version

Name:	map-Homa-072520204.png
Views:	1
Size:	102.5 KB
ID:	1759791

      I am using the 2020 US census county boundaries shapefile. I want a map of the United States at the center of page, with no or minimum blank areas around it. Can someone help me with this please?

      My code is the following:

      Code:
      grmap npolicysold, fcolor(Blues) ///
          title("Number of policies sold") ///
          legend(pos(7) size(*0.8)) ///
          graphregion(margin(zero) color(none)) ///
      Last edited by Homa Taheri; 25 Jul 2024, 10:39.

      Comment

      Working...
      X