<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 10:42 AM, Yihui Xie <span dir="ltr"><<a href="mailto:xie@yihui.name">xie@yihui.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm in favor of cache=TRUE whereas clip=FALSE; at least we (ISU<br>
graphics group) use caching very often to develop interactive<br>
graphics, but clip=TRUE, on the other hand, often has annoying and<br>
unexpected consequences, e.g. the elements you draw do not show up at<br>
the expected locations.<br>
<div class="im"><br>
Regards,<br>
Yihui<br>
--<br>
Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
</div>Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
<div class="im">Department of Statistics, Iowa State University<br>
2215 Snedecor Hall, Ames, IA<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">On Wed, Sep 1, 2010 at 10:55 AM, Hadley Wickham <<a href="mailto:hadley@rice.edu">hadley@rice.edu</a>> wrote:<br>
>> I would suggest turning off caching, i.e., pass cache=FALSE to qlayer, at<br>
>> least for the two axes. The issue, I think, is that Qt will only allocate a<br>
>> buffer large enough for the layer. You're then drawing outside of the cache,<br>
>> and it never makes it to the screen. I might make clip and cache both<br>
>> default to FALSE. Caching usually only makes sense when there is a dynamic<br>
>> overlay on the layer. This is usually not the case for axes.<br>
><br>
> This seems counterintuitive - you'd normally expect that cache to be<br>
> most helpful when you're not updating the layer very often?<br>
><br></div></div></blockquote><div><br>You want cache when you are not updating a layer often, but you do need to redraw it, i.e., it has something dynamic on top of it (or under it, but that's less common).<br> <br>
cache=TRUE slows down static rendering. For example, resizing a static plot will be slower with caching.<br><br>Michael<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="h5">
> Hadley<br>
><br>
> --<br>
> Assistant Professor / Dobelman Family Junior Chair<br>
> Department of Statistics / Rice University<br>
> <a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>
><br>
</div></div></blockquote></div><br>