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