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.
Just add par(mfrow=c(1, 1)) after running those functions and you're good to go.
You may cancel via live chat on the bottom right of the Short Par 4 website by clicking the "4" and then clicking "Contact". You may cancel via live text by texting (210) SP4-GOLF (774-4653).
The par() function is used to set or query graphical parameters. We can divide the frame into the desired grid, add a margin to the plot or change the background color of the frame by using the par() function. We can use the par() function in R to create multiple plots at once.
The mfrow() parameter allows to split the screen in several panels. Subsequent charts will be drawn in panels. You have to provide a vector of length 2 to mfrow() : number of rows and number of columns.
You can reset the mfrow parameter
par(mfrow=c(1,1))
You can reset the plot by doing this:
dev.off()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With