Re: [R] Difference between xyplot() and plot()

2011-10-28 Thread Jörg Reuter
l=mein.panel) 2011/10/28 S Ellison : > > >> From:  Jörg Reuter >> >>  Why >> is the line with xyplot() not always in the middle of the >> dots like plot()? > > Because you used the base graphics command abline() on a lattice plot? > > They don't mix. T

[R] Difference between xyplot() and plot()

2011-10-28 Thread Jörg Reuter
Hi, I draw two Plots, one with xyplot() and one with plot(). Why is the line with xyplot() not always in the middle of the dots like plot()? library(lattice) x<-c(1,2,3,4,5,6) y<-x plot.new() plot(x ~ y, main = "Sequenz 1 und Sequenz 2", xlab="Sequenz 2", ylab="Sequenz 1", las=1) abline(a=0, b=1,c

Re: [R] dotPlot with diagonal

2011-10-26 Thread Jörg Reuter
you > are using? > > Dennis > > On Wed, Oct 26, 2011 at 4:25 AM, Jörg Reuter wrote: >> Hi, >> I want draw a dotPlot. All works fine: >> (Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3, >> 4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6)) >> dotPlot(Se

[R] dotPlot with diagonal

2011-10-26 Thread Jörg Reuter
Hi, I want draw a dotPlot. All works fine: (Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3, 4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6)) dotPlot(Seq[1,], Seq[2,], main = "Sequenz 1 und Sequenz 2", asp = 1) Is there a way to draw a small diagonal, begin at (0/0) to (6/6) (perhaps in red??) or

Re: [R] Running R with browser without installing anything

2011-10-21 Thread Jörg Reuter
Thank for this hint. I installed RStudio and it in the night and test it few hour. It is a great tool. Jörg Am 20.10.2011 22:43 schrieb "Liviu Andronic" : > > On Thu, Oct 20, 2011 at 7:29 PM, Bogaso Christofer > wrote: > > Dear all, the company I work for has Matlab installed for > > statistica

[R] Change column/row-name

2011-10-20 Thread Jörg Reuter
Hi, I am very happy. My problems are solved without one little thing: (Iske <- matrix(c(1, 1, 1, 2, 2, 2, 1, 1, 1, 5, 1, 2, 2, 2, 1, 1, 1, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 2), ncol = 5)) #My Matrix Iske<- Iske+33 #I wan

[R] apply with function

2011-10-20 Thread Jörg Reuter
(Iske <- matrix(c(1, 1, 1, 2, 2, 2, 10, 1, 1, 5, 1,2,2,2,1,1,1,4,4,4,4,3,3,3,30,3,3,3,3,3,3,3,5,4,4,4,4,4,44,2,2,2,2,4,5,5,5,5,5,5,5,5,95,1,2), ncol = 5)) numtochar <- function(Zahl){ text <- rawToChar(as.raw(Iske[1,]))} (Iske.char[]<-apply(Iske,1,numtochar)) I have a little problem with the comma

Re: [R] Levenshtein-Distance

2011-10-20 Thread Jörg Reuter
Yes, I see many package. But the Problem is, the Package compare strings. But there is a diffrent between the caracter 1 and 2 and the number "12". All package I see compare every letter, but a number have many digits but the digits make only sense if the function see them together. I tough to chan

Re: [R] Levenshtein-Distance

2011-10-20 Thread Jörg Reuter
My big problem is not ward, it is to calculate the Levenshtein-Distance. > check the help archives. > >  hclust  with method=ward  might be what you are looking for > > > > On Wed, Oct 19, 2011 at 2:43 PM, Jörg Reuter wrote: >> I am very new to R, so sorry that I a

[R] Levenshtein-Distance

2011-10-19 Thread Jörg Reuter
I am very new to R, so sorry that I ask stupid things. I want compare a Matrix row by row and at the end I want to a Matrix with the Levenshtein-Distance. Example: The Data (Learningpath in a E-Learning-System): 5 12 24 35 1 24 35 3 35 35 45 35 Now I need a comand, which compare the first line wit