Using R Studio when trying to plot an xts object using chartSeries() the following error pop's up:
Error in plot.new() : figure margins too large
However when plotting it directly in R there is no problem with the margins size.
How can I correct the margins size for R Studio.
Note: the time series has more than 10,000 observations/entries
Thanks
write this three lines:
graphics.off()
par("mar")
par(mar=c(1,1,1,1))
This sometimes happens in RStudio. In order to solve it you can use any one of the following approach.
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