[R] ticks label of plot

2010-08-04 Thread yan liu
Hello, I had a question about how to label a axis of a plot. for example, my plot is >plot(1:100, axes=F) >box() >axis(1) then, I want my y-axis has six ticks ( at=seq(0,100,10)) , but I don't want to label all the 11 ticks, I only want to label the 1st, 3rd, 5th, 7th and 11th ticks. But the co

[R] heatmap-how to change the order of the rows (genes)

2011-02-09 Thread yan liu
Hi, I have a question about the heatmap dendrogram in R. I loaded my data matrix in command heatmap(), and it gave me a heatmap accordingly, and the rows (genes) also were clustered accordingly. But now I don't want the genes clustered in that way, I have a new order of these genes, and want the

[R] plot, y-axis, uneven scale???

2011-03-03 Thread yan liu
Hello, I have a question about the y-axis of plots. Actually I had about 60 values. About 80 percent of these values are less than 0.2, then the other 20 percent values are more than 4,max is 10. So when I plot these values together, the y-axis's range will go 0 to 10, and my major values (80%

[R] how to remove the redundant rows of a matrix

2011-10-31 Thread yan liu
Hi, I have a matrix like this, two columns: a, b a b c1 21 c2 19 c2 20 c2 20 c4 25 c5 18 c5 18 how to prepare a new matrix removing the rows with repeated units in b columns, like there are two 20 and two 18 in b column (others are unique in b col). I wanna a pure matrix with one 20 and