[R] Simple question.....

2005-10-06 Thread Fernando Espíndola


Hi all user R,

My simple question is...I have a vector of names of predictors, 

text-c(datem,cola,eslom)...I try to plot the model with this predictor 
in sequence loop,  
for(i in 1:3){
png(paste(fig_,i,sep=))
plot(preplot.gam(mod9)[[i]],se=T,rug=F,main=,xaxt=n,ylab=,xlab=)
axis(1,as.numeric(text[i]),as.character(text[i]),cex.axis=.9)
dev.off()
}

But the line with function axis get error

Error in axis(side, at, labels, tick, line, pos, outer, font, vfont, lty,  :
no locations are finite

I put in shell text[i] give datem, I try to erase the , can not search what 
is the function to erase this character (). Samebody can help me to erase , 
when put the predictor without , datem, there not problem

Thank for all  


Fernando Espindola R.
Division Investigacion Pesquera
Instituto de Fomento Pesquero
Blanco 839
Valparaiso - CHILE


[[alternative HTML version deleted]]

__
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] Please help me.....

2005-07-12 Thread Fernando Espíndola
Hi user R,

I am try to calculate the spectrum function in two time series. But when plot a 
single serie, the labels in axes x is in the range 0.1 to 0.6 (frequency), but 
when calculate de spectrum with ts.union function, the labels x is in the range 
1 to 6. I not understand why change the labels, and not know that is 
ralationship. Samebody can hel me in this analysis.

Thank for all

fdo

Fernando Espindola R.
Division Investigacion Pesquera
Instituto de Fomento Pesquero
Blanco 839
Valparaiso - CHILE
fono: 32 - 322442
[EMAIL PROTECTED]


[[alternative HTML version deleted]]

__
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] Two axes y in same plot

2005-06-23 Thread Fernando Espíndola
Hi user,

I try to make plot with two axes y, it is posibility?. Can anyboby help me

thank for all

fernando 

[[alternative HTML version deleted]]

__
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