[R] Jump between figures in multifigure environment
Naresh Gurbuxani
n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Wed Nov 12 19:28:13 CET 2025
After drawing multiple figures, I want to select an earlier figure to add some low level commands. Using mfg parameter runs all commands in the most recent figure only. How can an earlier figure be selected?
Thanks,
Naresh
par(mfrow = c(2, 2))
for (i in 1:4) plot(c(0, 1), c(0, 1), type = "n”)
for (i in 1:2) {for (j in 1:2) text(0.5, 0.5, labels = paste("(", i, ",", j, ")"), mfg = c(i, j, 2, 2))}
#All text is in bottom right figure only
More information about the R-help
mailing list