rp.pos {rpanel} | R Documentation |
This function is really just here so you can read this documentation and view the example.
rp.pos()
The various widget-creation functions accept a parameter called "pos" which can be used to specify how the panel is laid out. It has various modes of operation, outlined below:
left
, right
, top
or bottom
then the widget is put up against the left/right/top/bottom edge of the window. If there is already a widget in that position, the new widget is placed "in" from that widget. This uses Tk's "pack" layout managerc(x, y, width, height)
where all dimensions are in pixels. x
and y
define the coordinates in from the left-hand side and down from the top respectively. When using this mode of laying out objects, it usually helps to specify the size of the panel in rp.control
The example should give you a better idea of how they all behave: you should resize the windows to see how they behave.
None.
This may not work properly on the command line (as opposed to R-GUI) under Mac OS X due to the rp.block
function.
rpanel: Simple interactive controls for R functions using the tcltk package (http://www.stats.gla.ac.uk/~adrian/rpanel/)
## Not run: # example function for "pos" documentation. It can't be allowed to run because it calls block and messagebox. rp.pos() ## End(Not run)