RStudio Error in plot.new() : figure margins too large
<p><strong>Using R Studio</strong> when trying to plot an xts object using chartSeries() the following error pop's up:</p>

<p><em>Error in plot.new() : figure margins too large</em></p>

<p>However when plotting it <strong>directly in R</strong> there is no problem with the margins size.</p>

<p>How can I correct the margins size for R Studio. </p>

<p>Note: the time series has more than 10,000 observations/entries</p>

<p>Thanks</p>