I have the following problem:
I need to create a picture which consists of a plot, histogram, specific text and example of a matrix. I found a way how to do part of the task:
png('Erdos-Renyi.png', width=800, height=800)
par(mfrow=c(2,2))
plot(g, main=paste('Erdos-Renyi model, V=', V, ' E=',E, sep=""))
hist(degree(g))
...
dev.off()
In two additional plots I would like to output a text and a matrix. I tried to achieve this with text and mtext commands, but with no success.

Here is an example of what I am trying to achieve.
Check out the
addtable2plotfunction inplotrix