Re: [R] x labels out of Quartz canvas

2008-06-18 Thread MeMooMeM
Dr. Ripley, I appreciate all your help. The graph looks great now. Just in case someone searches for a similar problem: >You need to set the *margins* not the size of the canvas. See par's mai >and mar and the figures in that document. Here's how I do that: par(mar=c(7,7,7,7)) color2D.matplot

[R] color2D.matplot axis names

2008-06-17 Thread MeMooMeM
Hi, I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames(). Here's what I do: a=matrix(1:16, 4, 4) colnames(a) <- c("X1", "X2"

[R] Row and Col length of a matrix?

2008-06-17 Thread MeMooMeM
Hi, Is there a direct command to get the row and col length of a matrix? My ugly solution is: length(mtx[,1]) and length(bcf[1,]) Thanks! -- View this message in context: http://www.nabble.com/Row-and-Col-length-of-a-matrix--tp17936978p17936978.html Sent from the R help mailing list archiv

Re: [R] x labels out of Quartz canvas

2008-06-17 Thread MeMooMeM
Prof Brian Ripley wrote: > > You do this by adjusting the margin sizes. Can I suggest you read 'An > Introduction to R', which has a section on the layout of graphics (perhaps > the only area in which it is comprehensive). > > On Mon, 16 Jun 2008, MeMooMe

[R] x labels out of Quartz canvas

2008-06-16 Thread MeMooMeM
Hi R world, I am such a newbie, with only 4-5 days of R experience. I did a search in forum history but couldn't find a solution to my problem... Sorry if it's obvious: I managed to draw a barplot (yey!) with xlabels of 'long' names (filenames, to be particular). To make them readable, I place