Displaying 20 results from an estimated 1000 matches similar to: "create a gui with a button to change graphic?"
2006 Mar 27
3
graphing and scrolling
Dear R users
graphing with plot(x) seams to work for a small length(x), when length(x) is too large it seams to clutter the display, a solution would be to display subsets of x at a time, yet a better way which I hope R supports is to place a sliding bar on the display window to control length(x) and thus the resolution, which will involve auto scaling the y axis as well as automatically
2007 Sep 13
1
smooth scrolling with windows() function
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
plot. Is there any way in which I can get it to 'smooth scroll'?
Kind regards,
2006 Jul 29
1
fancier plotting
Hi
thank you for talking the time to help me with this.
I have a sequence of numbers in a file and an equal sequence of various character, say(a b c d) each occurs more than once. I need to plot the numbers so that numbers corresponding to a in the other sequence would have green dots, those corresponding to b a red dot, nothing on c and blue square for d. i.e
2 a show a green dot
4 b show a
2006 Mar 14
1
sort of fread to read from a file at fixed positions?
Hello everybody,
I need to read a file with a header (EDF files, recorded
electroencephalogram signals) that has fixed byte positions for each
field of its header.
These fields have no separator between them, for example:
<8 ascii name of the patient><10ascii start time of the recording><4
ascii ... > etc.
I read that perfectly in Octave by using fread, fseek and other
2006 Apr 17
0
autoscall the y-axis
Dear R users
I need to auto scale the left y axis in the code below, so that when
I scroll left or right the left y-axis scale changes to accumulate the
range of the displayed data with in the max hight of the y-axis.
also how can I make the crosshair horizontal since it is only
vertical in this code. this code with a kind help from
"Gregory (Greg) L. Snow Ph.D."
just
2003 May 06
4
bitmap images in tcltk
Dear R-help list members,
I'm writing a package using tcltk. Thanks to Peter Dalgaard's excellent
work on the tcltk package, almost everything has gone very smoothly. I'm
stymied, however, by the following problem:
I want to incorporate a bitmap image, stored as an xbm file, in a widget.
To take a simple example,
top <- tktoplevel()
tkgrid(tklabel(top,
2012 Jan 30
2
Help page of colors() : add a new example ?
Dear all,
May I suggest to add an example in the help page of the colors() function ?
The following code could be useful to easily choose any color from colors() :
## Millot G. (2011), p.71.
## Figure displaying all the 657 built-in color names of colors().
palette(colors())
tempo<-NULL
for(i in 14:1){tempo<-c(tempo, rep(i,50))}
windows(width=10) # replace by quartz(width=10) for MacOS and
2013 Oct 17
1
pamer.fnc y la nueva versión de R
Hola buenas noches,
tengo un problema bastante gordo. ¿A alguno le ha dejado de funcionar las
funciones pamer.fnc y mcp.fnc con la nueva versión de R? La semana pasada
formatee el ordenador y ahora scripts antiguos no funcionan. La cuestión es
que me precupa que no funcione el ejemplo de tutorial del autor.
Os dejo un script que debería de funcionar y no lo hace
2013 Mar 10
4
EEG data for time series
Dear R People:
I have a data set with EEG data. There are 128 measurements per second for
16 locations. What is the best way to handle these series, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess@gmail.com
[[alternative HTML version deleted]]
2001 Jul 05
1
ERP software
I was just playing around with the R-streams package, reading in some data
from an old experiment we did here, and was again amazed by the flexibility
of the R environment. The eaze with wich I was able to generate simple plots
of my EEG data made me wonder if someone tried to implement an ERP package.
For the non-cognitive scientists ou there: EEG is electrical activity
measured from the scalp
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello,
On Mac OS X, certain Aqua/Quartz UI functionality requires an
application to be launched from within an app bundle, or
(alternatively) requires a Carbon application with a resource fork.
Playing with the wxWidgets distribution, I discovered that it is quite
easy and transparent to make such a Carbon app from (I guess) any
command line application. When applied to the R executable called
2012 Nov 20
1
tcl/tk problem with tklistbox,the " " character and Rcmdr.
I everyone,
i have a little problem with tklistbox,the " " character and Rcmdr.
Please look at this code
require(tcltk)
tt<-tktoplevel()
levels.list2 <-tklistbox(tt,selectmode="multiple",exportselection="FALSE",
height=4, yscrollcommand=function(...)tkset(levels.list2.scroll,...))
2008 Mar 24
2
as.numeric with tclvalue redux
Hi again R People:
This works fine:
> library(tcltk)
> a <- tclVar("4.5")
> as.numeric(tclvalue(a))
[1] 4.5
> #But if you have:
> b <- tclVar("pi")
> as.numeric(tclvalue(b))
[1] NA
Warning message:
NAs introduced by coercion
>
Is anyone aware of a way around this, please?
thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer
2012 Sep 24
1
eval and tcltk : target of assignment expands to non-language object
Hi everyone,
I have a problem to assign a value with tcl/tk
ths is the code ( it should be simple to understand) :
library(tcltk)
valA<-tclVar("0")
valB<-tclVar("0")
valC<-tclVar("0")
id<-"A"
out<-"1"
out2<-"2"
print(paste("tclvalue(val",id,")",sep="")) # ok
2015 Jun 15
2
Add on argument in seq()
Thanks for your answer.
The rational behind my proposal is why taking "from" when length.out=1, more than "to" or "NA", or " integer(0) " ?
This question seems basic. But is is not in certain situations, like when length.out = unpredictable positive integer.
And I haven't found in ?seq() the particular behavior of this function when length.out = 1.
2015 Jun 15
1
Add on argument in seq()
Millot,
On Mon, Jun 15, 2015 at 9:19 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
> Regardless of the value of the other arguments, the first element in
> the output of seq() is _always_ `from`.
>
Indeed, as Hadley says, the output of seq must always start with* from*. It
is a sequence starting at *from* and ending wherever the other arguments
cause it to end. A sequence
2015 Jun 15
2
Add on argument in seq()
Hi.
I have a problem with the default behavior of seq(), which gives the argument "from" when the argument length.out = 1.
This behavior is annoying when the number of value determine in length.out is not predictable.
Would it be possible to add an argument that propose the median/mean, i.e. (from + to) / 2 when length.out = 1 ? Examples:
> seq(from = 1, to = 11, length.out=1) #
2003 Jan 10
1
tclVar Question
Hi All...
In an attempt to read data from a file and feed it into a tcltk entry box,
I've run into difficulties. The following hopefully describes my dilemma:
tclvalue(x.var) <- 5
Works fine.
tclvalue("x.var") <- 5
Does not work. [Error: Target of assignment expands to non-language object]
tclvalue(eval(parse(text="x.var"))) <- 5
Also, does not work.
Any
2015 Jun 15
3
Add-on argument in sample()
Hi.
I have a problem with the default behavior of sample(), which performs sample(1:x) when x is a single value.
This behavior is well explained in ?sample.
However, this behavior is annoying when the number of value is not predictable. Would it be possible to add an argument
that desactivates this and perform the sampling on a single value ? Examples:
> sample(10, size = 1, replace = FALSE)