Re: [R] Using package ROCR

From: LIMONIKA <limonika.bi_at_gmail.com>
Date: Fri, 13 Mar 2009 05:24:13 -0700 (PDT)

> library(ROCR)
> library(randomForest)
> plot(results,significant)

Error in as.double(x) :
  cannot coerce type 'S4' to vector of type 'double' After try with all the possibilities, it shows same error in simpleaffy data plot for the results.

please someone guide me

wiener30 wrote:
>
> I am trying to use package ROCR to analyze classification accuracy,
> unfortunately there are some problems right at the beginning.
>
> Question 1)
> When I try to run demo I am getting the following error message

>> library(ROCR)
>> demo(ROCR)
>> if(dev.cur() <= 1) .... [TRUNCATED] 

> Error in get(getOption("device")) : wrong first argument
> When I issue the command
>> dev.cur() 

> it returns
> null device
> 1
> It seems something is wrong with my R-environment ?
> Could somebody provide a hint, what is wrong.
>
> Question 2)
> When I run an example commands from the manual
> library(ROCR)
> data(ROCR.simple)
> pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels )
> perf <- performance( pred, "tpr", "fpr" )
> plot( perf )
>
> the plot command issues the following error message
> Error in as.double(y) :
> cannot coerce type 'S4' to vector of type 'double'
>
> How this could be fixed ?
>
> Thanks for the support
>
>
-- 
View this message in context: http://www.nabble.com/Using-package-ROCR-tp22198213p22495365.html
Sent from the R help mailing list archive at Nabble.com.

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 13 Mar 2009 - 14:04:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 Mar 2009 - 14:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive