<br><br><div class="gmail_quote">On Tue, Mar 23, 2010 at 5:58 AM, hadley wickham <span dir="ltr"><<a href="mailto:h.wickham@gmail.com">h.wickham@gmail.com</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;">
<div class="im">>> Now I'm having second thoughts about this - I think we need a package<br>
>> (maybe not qtpaint) that can be used with the usual R syntax. You<br>
>> might not be able to access all the advanced features, but you should<br>
>> be able to do the basics. This probably involves only writing a few<br>
>> more wrappers.<br>
><br>
> Wouldn't the high-level abstraction play this role?<br>
<br>
</div>For statistical graphics, sure. But qtpaint will be useful to other<br>
people who want to draw animations etc. It seems like it's so close<br>
to being a typical R api that we only need a few functions to complete<br>
it. This would also server as a convenient point for human written<br>
documentation that describes things in a bit more detail, without<br>
having to refer to the Qt documentation.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>Ok, I understand the benefits for documentation and consistency.<br> <br>I propose these functions:<br><br>qaddItem: layer$addLayer<br>qdeviceTransform: layer$deviceTransform(event)<br>
q(row,col)Stretch[<-]: layer$layout()$(row,col)[Set]Stretch()<br>q(h,v)Spacing<-: layer$layout()$setHorizontal(Vertical)Spacing()<br>qbackgroundBrush<-: scene$backgroundBrush <- brush<br>qgraphicsScene: Qt$QGraphicsScene()<br>
qclearSelection: layer$clearSelection()<br>qzValue<-: layer$setZValue()<br>qprimitives: layer$primitives()<br>qminimumSize<-: layer$setMinimumSize()<br>qcacheMode<-: layer$setCacheMode()<br>qclip<-: layer$setClip()<br>
qfocus<-: layer$setFocus()<br>qlimits<-: layer$setLimits<br>qoverlayScene: layer$overlayScene()<br><br>Think of anything else?<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>
</div></div></blockquote></div><br>