[R] PDF Different Page Sizes

2008-01-31 Thread Samuel Kemp
Hi, I am using the pdf() function to write out a pdf file that contains multiple plots (a plot per page). Is there a way to specify different page sizes for each plot in the file e.g. on page 1 in the pdf file I want (width=10, height=10) on page 2 (width=20, height=20), etc. Any help would be gr

[R] window (x,y) co-ordinates of datapoints

2007-10-09 Thread Samuel Kemp
Hi, In the getGraphicsEvent function the (x,y) co-ordinates returned from the mouse move are in relation to where the mouse is located within the device window (i.e. the lower left corner of the window is '(0,0)', the upper right is '(1,1)'). Is there a way of returning the (x,y) co-ordinates of

[R] Mouse Location on Plots

2007-10-08 Thread Samuel Kemp
Hi, Does anyone know of a function that dynamically updates a variable with the (x,y) co-ordinates of the mouse pointer on a plot? locator and identify only return the values when you click 'stop' on the graphics device. Any help would be gratefully appeciated. Kind regards, Sam. [[al

[R] a bug when subtracting vectors?

2007-09-24 Thread Samuel Kemp
Hi, I am calling in some data into R via the read.table function. The 'tail' of this data reads > tail(data) Date Open HighLow Close Volume 3728 Fri 14-Sep-07 114.19 114.46 113.93 114.08 1117992 3729 Mon 17-Sep-07 113.99 114.37 113.91 114.27 899671 3730 T

[R] Running tcltk From a batch file

2007-09-19 Thread Samuel Kemp
Hi, I am trying to run some simple tktcl code ## in a file called test.R require(tcltk) tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=function()tkdestroy(tt)) tkgrid(OK.but) tkfocus(tt) Using a batch file with the command Rterm < test.R > testOutput.Rout --slave The GUI pops u

[R] smooth scrolling with windows() function

2007-09-13 Thread Samuel Kemp
Hi, I have a large plot that I would like to display in a graphics device with scroll bars. I therefore decided to use the windows function like so... mag<- length(tick) windows(height=mag/8, width=10, rescale="fixed") However, when I use the scroll bars the device (i guess) is re-drawing the pl