Re: [R] cant get colAUC to plot

From: Tuszynski, Jaroslaw W. <JAROSLAW.W.TUSZYNSKI_at_saic.com>
Date: Fri 02 Dec 2005 - 02:15:46 EST


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@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of tom wright
Sent: Wednesday, November 30, 2005 8:34 AM To: R-help@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@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

R-help@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 Received on Fri Dec 02 02:20:31 2005

This archive was generated by hypermail 2.1.8 : Fri 02 Dec 2005 - 04:32:14 EST