I’m drawing a ROC curve and R is putting to much space between the curve and the plot border. I want values at x = 0 to touch the y-axis and points at y = 1 to touch the upper border of the plot.
This image shows exactly how I want it:
http://en.wikipedia.org/wiki/File:Roccurves.png
Anyone got any idea?
For base graphics, use the axis style parameters,
xaxsandyaxs, to constrain the plotting limits to the of the data.For lattice, you use the
xlimandylimparameters.For ggplot2, use
coord_cartesian.