Displaying 1 result from an estimated 1 matches for "selfmerge".
2008 Feb 08
2
xyplot and lsegments
Hi,
How might I use xyplot to plot segments where the segments are in the
input data? (ie a directed acyclic forest).
Here's an example in base graphics:
n = data.frame(id = c(1,2,3,4), parent = c(0,1,2,2), value =
c(5,5.5,7,3), date = c(1,2,3,3.5))
plot(n$date, n$value)
do.call(
segments,
with(
merge(n,n,by.x="parent", by.y="id"),