How to use -R and -J

Hi I have a question on how to use -R and -J to use default values to graph. I cant find the answer in the documentation so Im a bit confused. I need to make basic GMT code that will plot any XYZ into a simple elevation contour plot. However, this wouldn’t work with specific -R or -J data. Is there a way to structure them so that regardless of the input XYZ, the output would be a simple chart. (for example, R would just take the region that the coordinates are in).