Plot a function on specified region
I have the function
y= sin (x)
which is nicely plotted on the canvas for all values of x.
I want GeoGebra to plot it on a specific region, for example 1<x<2.
I came across the function SetVisibleInView but I don't understand the arguments it accepts, as I am not even sure whether this is the command I am looking for.