How to reset par(mfrow) in R

I set par(mfrow =c(1,2)) and now everytime I plot it shows splits it into 2 plots. How can I reset this to only show one plot.

Thanks so much.


Solution 1:

You can reset the mfrow parameter

par(mfrow=c(1,1))

Solution 2:

You can reset the plot by doing this:

dev.off()