Skip to content
Prev 74761 / 398502 Next

question on graphs and finding area under a curve

On Tue, 2005-08-02 at 18:20 +0530, Renuka Sane wrote:
See ?par and take note of the 'xaxs' and 'yaxs' parameters. By default,
these are set to 'r', where the axes are extended by 4% in each
direction. Thus, set one or both parameters to 'i' to set the axes to
exactly the ranges of xlim and/or ylim as you require.
See Frank Harrell's somers2() function in the Hmisc package on CRAN.
Among other things, it outputs a value "C", which is the AUC.

HTH,

Marc Schwartz