[R] Interactive plot

Duncan Murdoch murdoch at stats.uwo.ca
Thu Jul 24 14:34:16 CEST 2008


On 7/24/2008 8:24 AM, Megh Dal wrote:
> Thanks for this. Can you please explain me what are those MDI and SDI and the diff in laymans language?

Not really.  Just try them both, the differences are obvious.

Duncan Murdoch

> 
> 
> --- On Thu, 7/24/08, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> 
>> From: Duncan Murdoch <murdoch at stats.uwo.ca>
>> Subject: Re: [R] Interactive plot
>> To: megh700004 at yahoo.com
>> Cc: r-help at stat.math.ethz.ch
>> Date: Thursday, July 24, 2008, 5:42 PM
>> On 7/24/2008 7:34 AM, Megh Dal wrote:
>> > I have created following interactive plot :
>> > 
>> > library(TeachingDemos)
>> > plott = function(x)
>> >    {
>> >     return(hist(rnorm(as.integer(1000, 10, x)),
>> xlab=NA))
>> >    }
>> > tkexamp(plott,
>> list(x=list('slider',from=1,to=40, resolution=0.1,
>> init=2)), plotloc='top')
>> > 
>> > Here everything works fine, but the problaem is
>> whenever I try to drag the slider the entire plot window
>> goind behind the screen. Can anyone please tell me what
>> should I do?
>> 
>> 
>> It sounds as though you are using Windows, and running R in
>> MDI mode. 
>> tcltk doesn't work very well in this mode.  You really
>> need to shrink 
>> the MDI frame and move the tcltk window outside of it, or
>> run in SDI 
>> mode, where all windows are more or less equal.
>> 
>> You can select SDI mode by putting --sdi on the command
>> line, or from 
>> the Edit|GUI preferences dialog.
>> 
>> Duncan Murdoch
> 
> 
>



More information about the R-help mailing list