Re: [R] A panel of contour plots through a iteration process

2012-11-09 Thread Loukia Spineli
,main=Graphical display of imputations) } par(mfrow=c(1,1)) On Thu, Nov 8, 2012 at 7:13 PM, Loukia Spineli spinelilouki...@gmail.comwrote: Thank you very much both of you!! Jose, I will try your suggestion (regardless its application on my issue) to see how it works!:) You never know, Maybe, I

Re: [R] A panel of contour plots through a iteration process

2012-11-09 Thread Loukia Spineli
The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey *Van:* Loukia Spineli [mailto:spinelilouki...@gmail.com] *Verzonden:* vrijdag 9 november 2012 12:06 *Aan:* Jose Iparraguirre *CC

[R] A panel of contour plots through a iteration process

2012-11-08 Thread Loukia Spineli
Dear all, as you can see from the code I want to create *a panel of 11 contour plots through a iteration process*. I found a thread that address the issue of plotting many contour.plots in the same device, but it does not address my problem! I emphasize that the 11 contour plots must be appeared

Re: [R] A panel of contour plots through a iteration process

2012-11-08 Thread Loukia Spineli
Iparraguirre; Loukia Spineli; r-help@r-project.org help Subject: RE: [R] A panel of contour plots through a iteration process I would rather use facet_wrap() instead of multiplot() Just combine all your data in one data.frame and make sure that you have a variable indication the iteration

Re: [R] List of arrays - problem with dimensions

2012-10-30 Thread Loukia Spineli
Imagine a list of two arrays. The first array is like a vector that contains ten 2x2 matrices. The second array contains two vectors of 2x2 matrices of length five and three, respectively. I run the code and it gives me what I want for the first array. However, it disappoints me for the second

[R] List of arrays - problem with dimensions

2012-10-28 Thread Loukia Spineli
Dear all, I want to obtain the following result [[1]] , , 1, 1 [,1] [,2] [1,]11 [2,]11 , , 2, 1 [,1] [,2] [1,]11 [2,]11 , , 9, 1 [,1] [,2] [1,]11 [2,]11 , , 10, 1 [,1] [,2] [1,]11 [2,]11

Re: [R] List of arrays - problem with dimensions

2012-10-28 Thread Loukia Spineli
. Please stay on list. Your last reply was only to me. Rich On Sun, Oct 28, 2012 at 7:41 PM, Loukia Spineli spinelilouki...@gmail.com wrote: Thank you very much Richard for your quick reply! This is the whole code! I am stuck in this problem since a week (and my project has been paused

Re: [R] List of arrays - problem with dimensions

2012-10-28 Thread Loukia Spineli
## ? Rich On Sun, Oct 28, 2012 at 7:51 PM, Loukia Spineli spinelilouki...@gmail.com wrote: I am refreshing the code for the problem x = c( 4 , 4 , 0 ) y = c( 1 , 0 , 2 ) t = c( 1 , 2, 2 ) r-as.vector(table(t)) Nx-vector(list,length(unique(t))) Ny-vector(list,length(unique

Re: [R] List of multidimensional arrays

2012-10-27 Thread Loukia Spineli
:54 AM, Loukia Spineli spinelilouki...@gmail.comwrote: Dear all, to make our life easier, I give you the following dataset (just this vector) and code! It gives me two arrays of different dimensions: the first is a 2x2x1 array and the second is a 2x2x2 array (please, feel free to correct me

Re: [R] List of multidimensional arrays

2012-10-26 Thread Loukia Spineli
Dear all, to make our life easier, I give you the following dataset (just this vector) and code! It gives me two arrays of different dimensions: the first is a 2x2x1 array and the second is a 2x2x2 array (please, feel free to correct me on the way I define the arrays. This is the first time I am

Re: [R] Stata Database R

2012-10-26 Thread Loukia Spineli
Install the ares library first. Then type import.data(the direction you have saved the data,dta). On Fri, Oct 26, 2012 at 11:10 PM, Lorenzo Isella lorenzo.ise...@gmail.comwrote: Dear All, I am given some data to analyze. The data is in the form of a Stata database (.dta file). What is the

Re: [R] List of multidimensional arrays

2012-10-25 Thread Loukia Spineli
that it works. Perhaps consrtruct manually an example of what you want the answer to look like. Rich On Wed, Oct 24, 2012 at 3:51 AM, Loukia Spineli spinelilouki...@gmail.com wrote: Dear all, I am trying to create a list, where each list element is a vector of different length arrays

Re: [R] List of multidimensional arrays

2012-10-25 Thread Loukia Spineli
Thank you very much Berend!:) On Thu, Oct 25, 2012 at 4:37 PM, Berend Hasselman b...@xs4all.nl wrote: Loukia, Please send your replies to the R-help list. I am CC'ing this to the R-help list. On 25-10-2012, at 15:30, Loukia Spineli wrote: Dear Berend, I am not familiar at all

[R] List of multidimensional arrays

2012-10-24 Thread Loukia Spineli
Dear all, I am trying to create a list, where each list element is a vector of different length arrays that contain 2by2 matrices. To be more specific there are 11 treatments that are compared with placebo (we have 11 comparisons) and each comparison is studied by a different number of trials and

Re: [R] List of multidimensional arrays

2012-10-24 Thread Loukia Spineli
You are absolutely right. I read the guidelines! Mistake to attach 'word' file! The comfort is that at least I got an A :). I revise my question approapriately! On Wed, Oct 24, 2012 at 10:36 AM, David Winsemius dwinsem...@comcast.netwrote: On Oct 23, 2012, at 11:36 PM, Loukia Spineli wrote

[R] List of multidimensional arrays

2012-10-24 Thread Loukia Spineli
Dear all, I am trying to create a list, where each list element is a vector of different length arrays that contain 2by2 matrices. To be more specific there are 11 treatments that are compared with placebo (we have 11 comparisons) and each comparison is studied by a different number of trials and

[R] List of multidimensional arrays

2012-10-23 Thread Loukia Spineli
Dear all, I am trying to create a list, where each list element is a vector of different length arrays that contain 2by2 matrices. To be more specific there are 11 treatments that are compared with placebo (we have 11 comparisons) and each comparison is studied by a different number of trials and

Re: [R] Problem with colors in contour plot

2012-10-05 Thread Loukia Spineli
in a contourplot. On Fri, Oct 5, 2012 at 12:08 PM, Jim Lemon j...@bitwrit.com.au wrote: On 10/04/2012 10:25 PM, Loukia Spineli wrote: Dear R users, I have a 51 by 51 matrix of p-values (named as pvalue_MA). I want to present graphically this matrix in a plot (filled contour plot) where both

[R] Problem with colors in contour plot

2012-10-04 Thread Loukia Spineli
Dear R users, I have a 51 by 51 matrix of p-values (named as pvalue_MA). I want to present graphically this matrix in a plot (filled contour plot) where both axes represent probabilities. I have also added a grid in this plot. I want to highlight in white the cells of the grid that represent

Re: [R] Problem with mutli-dimensional array

2012-10-04 Thread Loukia Spineli
]][,, l] - mat.stat[,,i] + matrix(tmp, nrow=2, ncol=2,byrow=T) l - l + 1 } } } results I think this is it. Let us now if not. Rui Barradas Em 03-10-2012 08:48, Loukia Spineli escreveu: Thank you very much for your suggestions. They both worked! Actually I am

Re: [R] Problem with colors in contour plot

2012-10-04 Thread Loukia Spineli
, plot.axes = {}, col = mypal) grid() Hope this helps, Rui Barradas Em 04-10-2012 13:25, Loukia Spineli escreveu: Dear R users, I have a 51 by 51 matrix of p-values (named as pvalue_MA). I want to present graphically this matrix in a plot (filled contour plot) where both axes

Re: [R] Problem with mutli-dimensional array

2012-10-03 Thread Loukia Spineli
])){ for(k in 1:(Ny[i])){ Hope this helps, Rui Barradas Em 02-10-2012 15:20, Loukia Spineli escreveu: I want to make a multi-dimensional array. To be specific I want to make the following array results-array(0,dim=c(2,2,64,**7)) This is the code I have created but it gives

Re: [R] Is there any R function for data normalization?

2012-10-02 Thread Loukia Spineli
In this case you could use the apply function. Let your k*l matrix is named as y. Then, in order to standardize the values within each column use the following function aver-apply(y,2,mean) # calculate the mean within each column std-apply(y,2,sd) # calculate the stabdard deviation within each

[R] Problem with mutli-dimensional array

2012-10-02 Thread Loukia Spineli
I want to make a multi-dimensional array. To be specific I want to make the following array results-array(0,dim=c(2,2,64,7)) This is the code I have created but it gives no result due to the error subscript out of bound. x-rep(7,7) # Missingness in intervention y-rep(7,7) # Missingness in