title: pscl package of R
body: <p>I was running the xyplot of presidential elections in the pscl package and got the error</p>
  
  <pre><code>data(presidentialElections)
  library(lattice)
  xyplot(demVote ~ year | state,
         panel=panel.lines,
         ylab="Democratic Vote for President (percent)",
         xlab="Year",
         data=presidentialElections,
         scales=list(y=list(cex=.6),x=list(cex=.35)),
         strip=strip.custom(par.strip.text=list(cex=.6)))
  
  Error:
  Error in recordGraphics(drawGrob(x), list(x = x), getNamespace("grid")) :
    invalid graphics state
  </code></pre>
  
  <p>I am a new user to R and would appreciate if anyone can help me to fix the error.</p>