[R] Legend in lattice

2011-06-15 Thread Julio Rojas
Dear all, I have been working in a plot based on figure 5.6 of the Lattice book (http://lmdvr.r-forge.r-project.org/figures/figures.html). I have already modified it to include the size of the circles as another variable, but I would like to modify the legend to show it (like they do it in htt

[R] Lattice legend

2011-06-14 Thread Julio Rojas
Dear all, I have been working in a plot based on figure 5.6 of the Lattice book (http://lmdvr.r-forge.r-project.org/figures/figures.html). I have already modified it to include the size of the circles as another variable, but I would like to modify the legend to show it (like they do it in http

Re: [R] Reading a TIFF file

2011-04-22 Thread Julio Rojas
FF file > A: "Julio Rojas" > Cc: r-help@r-project.org > Fecha: viernes, 22 de abril de 2011, 12:37 pm > Unless you can provide a small > reproducible example (say a very small > tiff including the values you got from the non-R software) > it will be > hard to tell

Re: [R] Reading a TIFF file

2011-04-22 Thread Julio Rojas
> De: Uwe Ligges > Asunto: Re: [R] Reading a TIFF file > A: "Julio Rojas" > Cc: r-help@r-project.org > Fecha: viernes, 22 de abril de 2011, 03:54 pm > Fine, looking at the code shows that > readTiff read the image with using libtiff which should be > fine. A

[R] Reading a TIFF file

2011-04-22 Thread Julio Rojas
Dear all, I have been trying to speed up a process we have been done in ArcGIS. We have to read a single layer TIFF (monochrome image) in . For this, I have used the "rtiff" package. After reading the TIFF file, I compared the raw values for each pixel that I have in ArcGIS to the ones obtained

[R] Diagonal population density

2011-03-22 Thread Julio Rojas
Dear all. I have to plot a the marginal population density for a heat map that represents the population density of a city. I have been able to plot the heat map in the lower left corner, the marginal density in x in the upper left corner and the marginal density in y in the lower left corner. W

Re: [R] Combination that adds a value

2011-03-22 Thread Julio Rojas
Thx Petr. It worked likea charm. Regards. __ 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, re

[R] Combination that adds a value

2011-03-21 Thread Julio Rojas
Dear all, I have three vectors "x<-1:n", "y<-1:m" and "z<-2:(n+m)". I need to find all combinations of "x" and "y" that add up a given value of "z", e.g., for "z==3" the combinations will be "list(c(1,2),c(2,1))". Thanks in advance for your help.

Re: [R] Numerical Integration

2009-12-18 Thread Julio Rojas
ain, thanks. One last question: Is there a way to use "approx" as the integrand? Best regards. Julio --- El vie 18-dic-09, William Dunlap escribió: > De: William Dunlap > Asunto: RE: [R] Numerical Integration > A: "Julio Rojas" > Fecha: viernes, 18 diciembre

[R] Numerical Integration

2009-12-18 Thread Julio Rojas
Dear @ll. I have to calculate numerical integrals for triangular and trapezoidal figures. I know you can calculate the exactly, but I want to do it this way to learn how to proceed with more complicated shapes. The code I'm using is the following: integrand<-function(x) { print(x) if(x=fx

[R] Bias reduction method

2008-08-22 Thread Julio Rojas
Dear all, I'm doing a simulation study for an MM1 queue and I would like to know if there are bias correction methods in R for time series (estimations of warm-up points or something else). Hope you can help me. __

[R] Rv: Chi-square parameter estimation

2008-07-28 Thread Julio Rojas
Hi. I have made 100 experiments of an M/M/1 queue, and for each one I have calculated both, mean and variance of the queue size. Now, a professor has told me that variance is usually chi-squared distributed. Is there a way in R that I can find the parameter that best fits a chi-square to the var

[R] Chi-square parameter estimation

2008-07-25 Thread Julio Rojas
Hi. I have made 100 experiments of an M/M/1 queue, and for each one I have calculated both, mean and variance of the queue size. Now, a professor has told me that variance is usually chi-squared distributed. Is there a way in R that I can find the parameter that best fits a chi-square to the var