Yes. This question is cross posted. From the options()$device, I am 
getting the following output:

options("device")
$device
function (display = "", width, height, pointsize, gamma, bg,
     canvas, fonts, family, xpos, ypos, title, type, antialias)
{
     if (display == "" && .Platform$GUI == "AQUA" && 
is.na(Sys.getenv("DISPLAY",
         NA)))
         Sys.setenv(DISPLAY = ":0")
     new <- list()
     if (!missing(display))
         new$display <- display
     if (!missing(width))
         new$width <- width
     if (!missing(height))
         new$height <- height
     if (!missing(gamma))
         new$gamma <- gamma
     if (!missing(pointsize))
         new$pointsize <- pointsize
     if (!missing(bg))
         new$bg <- bg
     if (!missing(canvas))
         new$canvas <- canvas
     if (!missing(xpos))
         new$xpos <- xpos
     if (!missing(ypos))
         new$ypos <- ypos
     if (!missing(title))
         new$title <- title
     if (!checkIntFormat(new$title))
         stop("invalid 'title'")
     if (!missing(type)) {
         new$type <- match.arg(type, c("Xlib", "cairo", "nbcairo",
             "dbcairo"))
         if (!capabilities("cairo") && type != "Xlib")
             warning("cairo-based types are not supported on this build 
- using \"Xlib\"")
     }
     if (!missing(family))
         new$family <- family
     if (!missing(fonts))
         new$fonts <- fonts
     if (!missing(antialias) && type != "Xlib")
         new$antialias <- match.arg(antialias, aa.cairo)
     d <- check.options(new, name.opt = ".X11.Options", envir = .X11env)
     if (d$type == "Xlib" && !missing(family)) {
         fns <- X11Fonts()
         if (!family %in% names(fns))
             stop("unknown family for X11(type = \"XLib\")")
         d$fonts[1] <- fns[[family]]
     }
     type <- if (capabilities("cairo"))
         switch(d$type, cairo = 1L, nbcairo = 2L, dbcairo = 3L,
             0L)
     else 0L
     if (display == "XImage")
         type <- 0L
     antialias <- match(d$antialias, aa.cairo)
     .Internal(X11(d$display, d$width, d$height, d$pointsize,
         d$gamma, d$colortype, d$maxcubesize, d$bg, d$canvas,
         d$fonts, NA_integer_, d$xpos, d$ypos, d$title, type,
         antialias, d$family))
}
<bytecode: 0x2d27f48>
<environment: namespace:grDevices>

Is it properly setting up the device parameters, or do I need to modify 
something to make it work without resizing the window.

Regards

Ali
On 11/05/12 19:47, David Winsemius [via R] wrote:
>
> On Nov 5, 2012, at 11:08 AM, Sarah Goslee wrote:
>
> > Can you provide a reproducible example?
> >
> > On Mon, Nov 5, 2012 at 12:38 PM, Shahzad Ali <[hidden email] 
> </user/SendEmail.jtp?type=node&node=4648518&i=0>> wrote:
> >> Hello everyone
> >>
> >> I am trying to plot something in R but the plot is always empty. It
> >> only appears when I resize the plot windows.
> >>
> >> What exactly do I need to verify in options.
> >>
> >> My system is ARCH Linux 3.6.x
> >>
>
> This was cross-posted on SO where the poster mentioned later that 
> resizing the graphics window would make the plot re-draw properly. 
> Based on that additional information, I suggested looking at the 
> options()$device (functional) value.
>
> http://stackoverflow.com/questions/13235100/empty-plot-in-r
>
> -- 
>
> David Winsemius, MD
> Alameda, CA, USA
>
> ______________________________________________
> [hidden email] </user/SendEmail.jtp?type=node&node=4648518&i=1> 
> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://r.789695.n4.nabble.com/Empty-plot-in-R-tp4648513p4648518.html
> To start a new topic under R help, email 
> ml-node+s789695n789696h89@n4.nabble.com
> To unsubscribe from R, click here 
> <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=789695&code=YWxpMDAwc2hhaHphZEBnbWFpbC5jb218Nzg5Njk1fC04NzUzNjU0NDQ=>.
> NAML 
> <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>





--
View this message in context: http://r.789695.n4.nabble.com/Empty-plot-in-R-tp4648513p4648521.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]


