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

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to