Displaying 2 results from an estimated 2 matches for "1x30".
Did you mean:
130
2012 Nov 07
2
simple coversion of matrix rows to matrix columns
...10,] 10 20 30
I would like to convert the above into a matrix that looks like this with 3 rows and 10 columns:
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
I have tried :
b <-t(matrix(a))
but I am getting a 1X30 double matrix. I also Tried to specify
b <-t(matrix(a),byrow=TRUE,ncol=10)
but that does not help either...
apreciate your help,
Andras
[[alternative HTML version deleted]]
2002 Jul 25
3
Barplot coloring question
...o have a certain colour, and the other one a different one. So,
the bars should really have an alternating pattern like red green red
green... and so on, not just one colour.
For the above dataset I could set beside=TRUE and transform the dataset to
two rows and 15 columns rather than the current 1x30, so something like:
ADVP (etc.)
0a 96.85
0b 2.05
but I will eventually need to plot a matrix like
ADVP ADVP (etc.)
1 30 40
2 20 20
3 10 5
and there I will want beside=FALSE because I want the 1, 2, 3 rows to
appear *within* a bar, but I still want pairs of bars for ADVP.
Thi...