library(diagram)
# creates an empty plot
openplotmat()
# create the coordinates
pos <- coordinates(c(1,3))
# Set the shape size
rx <- 0.15
ry <- 0.15
# arrow of `TRUE`/`FALSE`
ar <- straightarrow(from = pos[1,], to = pos[2,])
text(ar[1] - rx/2, ar[2] + ry, "TRUE", cex = 1.5)
ar <- straightarrow(from = pos[1,], to = pos[4,])
text(ar[1] + rx/2, ar[2] + ry, "FALSE", cex = 1.5)
# cells
textdiamond(mid = pos[1,], radx = rx, rady = ry, lab = "cond", cex = 2)
textrect(mid = pos[2,], radx = rx, rady = ry, lab = "cons.expr", cex = 2)
textrect(mid = pos[4,], radx = rx, rady = ry, lab = "alt.expr", cex = 2)