I initially create a plot which is a combination of boxplot & histogram. For this I set
nf <- layout(mat = matrix(c(1,2),2,1, byrow=TRUE), height = c(1,3))
par(mar=c(2,2,1,1))
# Draw box plot
# Draw histogram
After this I need to create a regular plot. But I find that all subsequent plots try to follow the same layout. One on top and another one below.
How can I reset the layout to default?
Should I use nf <- layout(mat = matrix(c(1,1),1,1, byrow=FALSE))
Thanks Ganesh