By default, explicitly given functions are plotted for the whole of the visible part of the x-axis. You can specify an other range in the edit-dialog for the function. If the plotting area contains the resulting point it is connected to the last drawn point by a line.
Parametric and polar functions have a default plotting range of 0 to 2π. This plotting range can also be changed in the Functions sidebar.