if (FALSE) {
foo <- list(
AA = qcv(terms="02:03, 05"),
BB = qcv(terms="1:2, 3:10"),
CC = qcv(terms="1:9, 100:150")
)
foo2 <- list(
AA = qcv(terms="40"),
BB = qcv(terms="50:90"),
CC = qcv(terms="60:90, 100:120, 150"),
DD = qcv(terms="")
)
(dat <- cm_2long(foo, foo2, v.name = "time"))
plot(dat)
(out <- cm_distance(dat, replications=100))
names(out)
names(out$main.output)
out$main.output
out$extended.output
print(out, new.order = c(3, 2, 1))
print(out, new.order = 3:2)
#========================================
x <- list(
transcript_time_span = qcv(00:00 - 1:12:00),
A = qcv(terms = "2.40:3.00, 6.32:7.00, 9.00,
10.00:11.00, 59.56"),
B = qcv(terms = "3.01:3.02, 5.01, 19.00, 1.12.00:1.19.01"),
C = qcv(terms = "2.40:3.00, 5.01, 6.32:7.00, 9.00, 17.01")
)
(dat <- cm_2long(x))
plot(dat)
(a <- cm_distance(dat, causal=TRUE, replications=100))
## Plotting as a network graph
datA <- list(
A = qcv(terms="02:03, 05"),
B = qcv(terms="1:2, 3:10, 45, 60, 200:206, 250, 289:299, 330"),
C = qcv(terms="1:9, 47, 62, 100:150, 202, 260, 292:299, 332"),
D = qcv(terms="10:20, 30, 38:44, 138:145"),
E = qcv(terms="10:15, 32, 36:43, 132:140"),
F = qcv(terms="1:2, 3:9, 10:15, 32, 36:43, 45, 60, 132:140, 250, 289:299"),
G = qcv(terms="1:2, 3:9, 10:15, 32, 36:43, 45, 60, 132:140, 250, 289:299"),
H = qcv(terms="20, 40, 60, 150, 190, 222, 255, 277"),
I = qcv(terms="20, 40, 60, 150, 190, 222, 255, 277")
)
datB <- list(
A = qcv(terms="40"),
B = qcv(terms="50:90, 110, 148, 177, 200:206, 250, 289:299"),
C = qcv(terms="60:90, 100:120, 150, 201, 244, 292"),
D = qcv(terms="10:20, 30, 38:44, 138:145"),
E = qcv(terms="10:15, 32, 36:43, 132:140"),
F = qcv(terms="10:15, 32, 36:43, 132:140, 148, 177, 200:206, 250, 289:299"),
G = qcv(terms="10:15, 32, 36:43, 132:140, 148, 177, 200:206, 250, 289:299"),
I = qcv(terms="20, 40, 60, 150, 190, 222, 255, 277")
)
(datC <- cm_2long(datA, datB, v.name = "time"))
plot(datC)
(out2 <- cm_distance(datC, replications=1250))
plot(out2)
plot(out2, label.cex=2, label.dist=TRUE, digits=5)
}
Run the code above in your browser using DataLab