Re: [R] how to convert a data.frame to tree structure object such as dendrogram

2013-03-12 Thread Not To Miss
tself, then apply the lapply or rapply function to > those resulting lists, ... > > > On Mon, Mar 11, 2013 at 3:41 PM, Not To Miss wrote: > >> Thanks. That's just an simple example - what if there are more columns and >> more rows? Is there any easy way to create nest

Re: [R] how to convert a data.frame to tree structure object such as dendrogram

2013-03-11 Thread Not To Miss
"Ba" "Bd" > > I suppose it is at least a little bit tree-like. > > > -- > Don MacQueen > > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > > > > > > On 3/10/13 9:19 PM, "N

[R] how to convert a data.frame to tree structure object such as dendrogram

2013-03-10 Thread Not To Miss
I have a data.frame object like: > data.frame(x=c('A','A','B','B'), y=c('Ab','Ac','Ba','Bd')) x y 1 A Ab 2 A Ac 3 B Ba 4 B Bd how could I create a tree structure object like this: |---Ab A---| _| |---Ac | | |---Ba B---| |---Bb Thanks, Zech [[alternative HTML version

Re: [R] get current plot dimensions?

2013-03-09 Thread Not To Miss
623834 > > > > plot.new() ; par(new=TRUE) > > par("pin") > [1] 0.6624667 3.5415500 > > plot(20:29, main="Two") > > par("pin") > [1] 0.6624667 3.5415500 > > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com &g

[R] get current plot dimensions?

2013-03-08 Thread Not To Miss
Hi R users, I find par("pin") is kind of confusing (or maybe just me?). The manual said it will give " The current plot dimensions, ‘(width,height)’, in inches." The word "current" is the key here. I thought it would give the dimensions of the to-be plot, but it actually gives the dimension of the

[R] what is absolute size of mar

2013-03-07 Thread Not To Miss
Hi R users, The margin parameter mar is measured in unit of lines, the size of which is automatically adjusted during plotting. I am wondering how can get the size of a line and how can I control the margin size by controlling the line size? (I know I can use mai to control the absolute size of ma