[R] problems with kzft

2009-10-02 Thread Markus Häge
Hello there after I became familiar with R and Design of Experiments, I tried to make a fourier transform with kzft but failed. I don't understand kzft.pdf right. I tried: t<-1:1000 x<-cos(2*pi*(1/100)*t) kzft.x1<-kzft(x,200,1,0.005) x1<-2*Re(kzft.x1$tf[,2]) //Is it "Re" because it's complex? Wha

[R] 2 functions in xyplot

2009-11-19 Thread Markus Häge
Hello, after a long night I don't find any mistake anymore in my xyplot and it doesn't work. I want to make a scatterplot with regression line. Each of it alone is possible but both arguments together are not working: "unexpected symbol... test<-lm(Magnetfeld~Spannung,data=Kalibrierung) kalib<-

[R] Arrhenius plot with lattice

2009-11-25 Thread Markus Häge
hello there, I like to print a theoretical function into my data. It would work with "panel.curve" when it's all "normal". but unfortunately it's an arrhenius plot and I need "1000/Temperature"(70-300K) at the x-axis. With my data it wasn't a Problem but now I have to add this function to the plot

[R] Arrhenius Plot 2 with lattice

2009-11-26 Thread Markus Häge
Hello, sorry for incomplete code... with this I read the file and calculate my stuff. I have a plenty of them 80-300K every 5 Kelvin. I start with 79K, 80K...300K test<-read.table("T300_both.txt",header=FALSE,sep="") RH2<-c(RH2,2.5e7*.32e-4/100e-6/5100*(test$V3[c(2)]-test$V3[c(1)]+test $V3[c(4)]

[R] Plot-region not complete

2009-11-28 Thread Markus Häge
Hello there, after I solved many problems in the last days with R I wanted to complete my plot. I used ylab=expression(paste("log(",mu,"/",cm^2,"/VS)")) to have greek symbols and to change cm^2 to cm². Also cm^-3 I have in another plot, but it cuts my ^2 to _ in the y-axis. here is the code and I

[R] regression with a*cos(angle+phi)+b

2009-11-30 Thread Markus Häge
Hello, the only thing I found to fit a sin/cos is s.th like lm(a~cos+sin) But this is not what I want. I have a magnitude which is sinusoidal with offset and it doesn't start at phi=0. The data is: angle<-c(0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180) Voltage<-c(-45.07, -45

[R] physical distributions

2009-12-21 Thread Markus Häge
Hi there, I was looking for a Lorentz-distribution in R but I didn't find any physical distribution. Is there s.th which I can use for fitting. thanks Markus __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r