# Using -R( region map flag)

**URL:** <https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211>\
**Category:** Q&A\
**Created:** [January 24, 2020, 10:06am UTC](https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211 "2020-01-24T10:06:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/john/32/40_2.png) [@John](https://forum.generic-mapping-tools.org/u/John)\
**Post date:** [January 24, 2020, 10:06am UTC](https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211/1 "2020-01-24T10:06:44Z")

</div>

Hello good evening Sir and Ma, I have a question as regards the use of -R i.e the region flag used in gmt. I tried to plot this type of map using -Rg340/52/-40/40 and -Rd340/52/-40/40 but didn’t plot the map region, how can I set the -R flag in my script to have this type of map? many thanks . I am more concerned with the longitude such that my map has similar degree values

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/388f11b064de82b6a4fde67ce4a8d0948549857b.jpeg)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [January 25, 2020, 3:08am UTC](https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211/2 "2020-01-25T03:08:15Z")

</div>

When specifying -R you must ensure xmax \> xmin, hence you can do 20W/52E or -20/52 or 340/412 but not 350/20. The labeling of the map axis is an entirely different matter and under the control of MAP\_FORMAT\_GEO etc.

---

<div class="post-metadata">

**Author:** ![John](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/john/32/40_2.png) [@John](https://forum.generic-mapping-tools.org/u/John)\
**Post date:** [January 25, 2020, 8:29am UTC](https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211/3 "2020-01-25T08:29:32Z")

</div>

Prof pwessel , many thanks Sir, am very grateful it worked when I tried using ETOPO1.grd which is on a -180 to 180 longitude. However Sir, my data on the longitude in this case only extend from 0 to 360 E on a global domain , how possible is the use of 340/412 in such case with longitude extend from 0 to 360 E not -180 to 180 as other case.

---

<div class="post-metadata">

**Author:** ![John](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/john/32/40_2.png) [@John](https://forum.generic-mapping-tools.org/u/John)\
**Post date:** [January 25, 2020, 2:57pm UTC](https://forum.generic-mapping-tools.org/t/using-r-region-map-flag/211/4 "2020-01-25T14:57:22Z")

</div>

I got it by further practice from what you told me, many thanks Sir, grateful
