[R] cant get colAUC to plot

Tuszynski, Jaroslaw W. JAROSLAW.W.TUSZYNSKI at saic.com
Thu Dec 1 16:15:46 CET 2005


It is a bug, I will have to fix. I assumed that data will have column names
I can use for legend. So temporary fix is to provide column names:

library(caTools)
a<-matrix(rnorm(100), 100,1)
b<-rbinom(100,1,0.7)
colnames(a) = "test";
colAUC(a,b,plotROC=TRUE)

Thanks for reporting it.

Jarek Tuszynski

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of tom wright
Sent: Wednesday, November 30, 2005 8:34 AM
To: R-help at stat.math.ethz.ch
Subject: [R] cant get colAUC to plot


Can someone please explain why this wont plot. The cats example given for
the colAUC function will plot.

Many thanks again
tom

#########################
library(caTools)
a<-rnorm(100)
b<-rbinom(100,1,0.7)
colAUC(a,b,plotROC=TRUE)

> colAUC(a,b,plotROC=TRUE)
Error in strwidth(legend, units = "user", cex = cex) :
        argument "legend" is missing, with no default


> R.Version()
$platform
[1] "x86_64-pc-linux-gnu"

$arch
[1] "x86_64"

$os
[1] "linux-gnu"

$system
[1] "x86_64, linux-gnu"

$status
[1] ""

$major
[1] "2"

$minor
[1] "1.0"

$year
[1] "2005"

$month
[1] "04"

$day
[1] "18"

$language
[1] "R"

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list