Vinz
March 16, 2022, 11:00am
1
hi
i have searched on websites how to solve this problem but it remains, and i dont understand really how to deal with it
this code :
data()
dev.off()
par(mfrow=c(2,2))
plot(airquality$Wind,airquality$Temp)
plot(airquality$Wind,airquality$Temp)
plot(airquality$Wind,airquality$Month)
plot(airquality$Wind,airquality$Day)
always returns :
Error in plot.new() : figure margins too large
even if i enlarge at max the "plot" window
(screenshot)
I don't see that you did share a screenshot.
Are you share you have made the plot window an appropriate size ?
You can avoid the plot window and write to disk, and then open in an image editor or what have you from there.
png()
par(mfrow=c(2,2))
plot(airquality$Wind,airquality$Temp)
plot(airquality$Wind,airquality$Temp)
plot(airquality$Wind,airquality$Month)
plot(airquality$Wind,airquality$Day)
dev.off()
png has a file param that you can use to pass a filename to make (or it will make with a default name, "Rplot%03d.png"
)
1 Like
Vinz
March 16, 2022, 10:16pm
3
hi thanks
png() works perfect yes but i dont understand why the direct method gives this error message
i dont exactly understand what you mean with :
Are you share you have made the plot window an appropriate size ?
https://www.dropbox.com/s/ztoe3czaajokfxu/ajRmargins.png?dl=0
I believe @ nirgrahamuk means that the plot panel is too small in RStudio. You can enlarge it by dragging on the left edge of the panel or the top edge. I have had the same problem but can not reproduce it to file a report.
1 Like
Vinz
March 17, 2022, 7:36pm
5
ok thanks
i use png() now, without really understanding how to fix the problem…
system
Closed
April 7, 2022, 7:37pm
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.