[R] radarchart axis scaling

2012-08-19 Thread Mitra Rahmati

Hello

I created a radar chart using the function of “radarchart” from the  
“fmsb” package in R software.

The matrix I am using is as follows:
x<-c(c(rep(4.5,7),c(rep(0,7)), 3.34, 3.28, 1.37, 1.12, 3.52, 4.07, 3.66));
a<-matrix(x,nrow=3, ncol=7,byrow=T)

I would like to show the range of c(0,5) on the axis instead of   
c(0,100) or c(0,1).

I really appreciate it if any body can guide me.

Best regards,
Mitra Rahmati

__
R-help@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.


[R] nonlinear model

2011-10-24 Thread mitra Rahmati
Hello,
I am trying to do a nonlinear model using the "nls" command in R software.
The data I am using is as follows:

A<-c(7.132000,8.668667,9.880667,8.168000,10.86,10.381333,11.059333,7.589333,4.716667,4.268667,7.265333,10.309333,8.456667,13.359333,8.624000,13.571333,12.52,4.084667
,NaN,NaN)

Pot<-c(21.70,16.70,16.40,17.20,17.83,18.27,18.97,18.40,19.10,18.33,16.33,21.47,7.03,NaN,6.37,6.70,16.63,15.67
,17.88,NaN)

When using the nls command I recieve an error like this:

 >mod = nls(A~ Amax * (1-exp(-b*Pot)),start=list(Amax=10,b=0.003))
/
/
Error in nls(A~ Amax * (1 - exp(-b * Pot), start = list(Amax = 10, :

/   step factor 0.000488281 reduced below 'minFactor' of 0.000976562

/I suppose that the used model is wrong, specialy Amax. I studied somewhere I 
should use "plinear" model but I did not know.
If you can guide me, any advices would be realy appreciated.
Thank you in advance,/

Best regards,
Mitra RAHMATI/


[[alternative HTML version deleted]]

__
R-help@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.