Error in plot.new() : figure margins too large

I am trying to plot in RStudio but gives error : Error in plot.new() : figure margins too large.

The code is below:

par(mfrow=c(3,3))
for(i in 2:19){
plot(dataset[,i],
dataset$price,
main=names(dataset[i]),
ylab=names(dataset$price),
xlab="", col='indianred4')
}

Please help me how to fix this?

As far as I know this often happens when the viewer pane (by default on the lower right in Rstudio) is too small. Resize it, try again and see if this helps.

Btw, this is not a ggplot but a base plot.