xlim xlim(xmin, xmax) Sets the x-axis limits of the current plot. xlim() Returns the x-axis limits of the current plot.