Hi,

Thanks a lot! That worked wonders! Dint know R was that flexible.I was
looking for packages that do it in vain.

On Sat, Jul 11, 2009 at 6:10 PM, Soetaert, Karline
<K.Soetaert@nioo.knaw.nl>wrote:

>  Rajesh,
>
>
>
> To add a plot next each graph node I would open a new figure, with smaller
> size (see ?par)
> a. The plotmat function returns the position of all elements (in the
> example in pp). pp$comp contains the position of the boxes.
> b. Choose the position of the new figure (fig) and tell R not to clean the
> frame (new=TRUE)
> c. create the plot
> d. restore the size of the original figure (0,1,0,1)
>
> something like this:
>
> pos1 <- pp$comp[1,]
> fig <- c(pos1[1]+0.2,pos1[1]+0.4,pos1[2]-0.1,pos1[2]+0.1)
> par(new=TRUE,fig=fig)
> plot(1,2,pch=16,ylab="",xlab="")
> par(fig=c(0,1,0,1))
>
> Karline
>



-- 
Rajesh.J

	[[alternative HTML version deleted]]


