Displaying 3 results from an estimated 3 matches for "bycolumn".
Did you mean:
mycolumn
2006 Sep 27
3
multidimensional lists
...this is
especially true for n-dimensional cell arrays. In MATLAB, for example, I
could generate a (say) 2x2 cell array using
test={A B;C D}
The only way I can figure out how to do this in R is using something like
test=list(A,B,C,D);
dim(test) < c(2,2);
This seems to work, but defaults to bycolumn (in other words, instead of
A B
C D
I get
A C
B D
)
So, I follow with
test=t(test) as needed to flip the thing around to byrow.
OK, so the question is - is there a better way? This *seems* to work,
but I'm discovering that R is a lot like working with LaTeX (something I
know muc...
2009 Mar 25
2
need help with ordering of plots
...ave read
on reorder()makes any sense to me at all. Can anyone help?
Also, not to get snippy, but it seems to me that a very obvious and
useful flag for the contourplot() function would be some sort of order
flag, which could take arguments like "reverse" or "byrow" or
"bycolumn". As far as I can tell, nothing of the sort exists. Am I
right about this? If so, why is this the case? A flag in a function
would be a much more convenient way of changing plotting order than
actually messing around with your data.
Thanks.
[[alternative HTML version deleted]]
2010 Nov 25
1
Replacing 1 plot in layout
Hi,
layout(1:2) # split the screen into 2 regions
plot(1:2) # plot in region 1
plot(1:2) # plot in region 2
par(mfg=c(1,1)) # Then I want to update the plot in region 1
plot(1.5,1.5)
But the this last plot overlays with my 1st plot.
Q: How do I replace my first plot with my last?
#### NOTE ######
I know I can do this with split.screen and screen(n,TRUE)
But then it actually clears the