[R] Stretch the y axis in levelplot

2013-03-12 Thread Dieter Wirz
Hi - levelplot (Package lattice) assumes, that the used Matrix is more or less quadratic. But if the Matrix is e.g. 5x400 you get only a bar require(lattice) # create a nice matrix dat <- as.data.frame(matrix(runif(2000),ncol=5)) dat$V1 <- c(sin(1:400/80)) dat$V2 <- c(sin(1:400/75)) dat$V3 <-

Re: [R] automated polynomial regression

2009-05-14 Thread Dieter Wirz
Thanks Bert and Luc! Sometimes the solution is close, but I did not find it I always tried mylm$Coefficients... Stupid /me. -didi BTW: many thanks to all developers of R. IMHO R is one of the most outstanding free projects! On Thu, May 14, 2009 at 7:07 PM, Bert Gunter wrote: > > -- but it i

[R] automated polynomial regression

2009-05-14 Thread Dieter Wirz
Dear all - We perform some measurements with a machine that needs to be recalibrated. The best calibration we get with polynomial regression. The data might look like follows: > true_y <- c(1:50)*.8 > # the real values > m_y <- c((1:21)*1.1, 21.1, 22.2, 23.3 ,c(25:50)*.9)/0.3-5.2 > # the measured

[R] Stripchart and Boxplots side-by-side

2008-05-22 Thread Dieter Wirz
Dear all - With the following code I get Boxplots and Stripcharts in one Plot: with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3)) with(InsectSprays, stripchart(count ~ spray, col = "red", vertical = TRUE, add = TRUE)) But the dots from the stripchart are plotted over the Boxes. Is there any

[R] Stripchart and Boxplots side-by-side

2008-05-22 Thread Dieter Wirz
Dear all - With the following code I get Boxplots and Stripcharts in one Plot: with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3)) with(InsectSprays, stripchart(count ~ spray, col = "red", vertical = TRUE, add = TRUE)) But the dots from the stripchart are plotted over the Boxes. Is there any