Note that there are some explanatory texts on larger screens.

plurals
  1. POR ggplot2 - no background or grid lines in plot with RGui
    text
    copied!<p>I'm having a strange problem with the output window in RGui (under Win XP). I should see a plot like the one below...</p> <p><a href="http://img402.imageshack.us/img402/7483/ss20100121153931.png">alt text http://img402.imageshack.us/img402/7483/ss20100121153931.png</a></p> <p>... when I run this script:</p> <pre><code>library(ggplot2) x &lt;- rnorm(100,0,1) y &lt;- rnorm(100,0,1) z &lt;- data.frame(x,y) g &lt;- ggplot(z, aes(x,y)) + geom_point() + theme_gray() </code></pre> <p>Instead, in the plot window it shows a white background and white grid lines, like below.</p> <p><strong>R Plot Window</strong></p> <p><a href="http://img192.imageshack.us/img192/5349/ss20100121160230.png">alt text http://img192.imageshack.us/img192/5349/ss20100121160230.png</a></p> <p>When I export the plot to .png and I "preview" it in windows explorer - it doesn't show a background or grid lines. </p> <p><strong>Png in Windows</strong></p> <p><a href="http://img192.imageshack.us/img192/5349/ss20100121160230.png">alt text http://img192.imageshack.us/img192/5349/ss20100121160230.png</a></p> <p><strong>Same Png in Gimp</strong></p> <p><a href="http://img402.imageshack.us/img402/7483/ss20100121153931.png">alt text http://img402.imageshack.us/img402/7483/ss20100121153931.png</a></p> <p><strong>Same Png uploaded to image hosting</strong></p> <p><a href="http://img402.imageshack.us/img402/7483/ss20100121153931.png">alt text http://img402.imageshack.us/img402/7483/ss20100121153931.png</a></p> <p>Any ideas about what's going on? How can I get the plot to display correctly in RGui?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload