[R-es] error:max not meaningful for factors

Marta valdes lopez martavaldes85 en gmail.com
Vie Jun 27 21:09:09 CEST 2014


Hola a todos,

Estoy intentando utilizar este script para hacer un plot con valores x
,y,z; representando los valores TP(y) y FP(x) y en funcion de la velocidad
que seria el factor alpha.
Y me da este en el ultimo punto de hacer el plot, alguien sabe que
significa?

library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels )
perf <- performance( pred, "tpr", "fpr" )
filename<-"rocdata csv.csv"

Anthias<- read.table(filename, sep=",",header=TRUE)

windows(width = 9.5, height = 10.50)
par(mfrow = c(1,1))

cc<-Anthias[1]
ee<-Anthias[2]
aa<-Anthias[3]

perf en x.name<-"FP"
perf en y.name<-"TP"
perf en alpha.name<-"Speed"

bb<-data.frame(aa)
perf en x.values<-bb

dd<-data.frame(cc)
perf en y.values<-dd

ff<-data.frame(ee)
perf en alpha.values<-ff


plot(perf, main="Teste", colorize=TRUE, coloraxis.at=c(0,2,4,6,8,10),
coloraxis.cex.axis=0.8, colorize.palette=(rainbow(256,start=0, end=0.7)),
lwd=7, colorkey.relwidth=0.4, yaxis.las=1)


Si alguien puede darme alguna idea, agradeceria.Muchas gracias¡
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20140627/8faabbad/attachment-0001.html>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: rocdata csv.csv
Type: text/csv
Size: 20763 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20140627/8faabbad/attachment-0001.bin>


Más información sobre la lista de distribución R-help-es