Re: [R] Embedding Audio Files in Interactive Graphs

2007-09-04 Thread Michael Lawrence
On 9/4/07, Sam Ferguson <[EMAIL PROTECTED] > wrote:
>
> Thanks for your reply Bruno.
>
> No - as I said, I know how to do that - the movie15 and the
> multimedia package are basically the same, and it is relatively
> straightforward to get an audio file into a pdf with them. However,
> real interactivity is not easily achieved in latex IMO (as it's not
> its purpose). At least I'm hoping for a bit more flexibility.
>
> R seems like a better place to do interactivity, and with the field
> of information visualisation pointing out that interactivity is a
> very useful element for investigation of data it seems that clicking
> around graphical displays may become more and more popular in time.
> In my field I'm interested in audio data, and so simple interactive
> visual and auditory displays would be great. A (very useful) start
> would be 5 separate waveform plots that would play their appropriate
> sounds when clicked. More complex figures could plot in a 2d space
> and allow selection of data points or ranges perhaps.
>
> I love R for graphics and for Sweave though, and would like to use it
> if possible - ideally it would be to produce a figure that included
> the appropriate audiofiles and interactive scripts, which could then
> be incorporated into a latex document \includegraphics. However, from
> the deafening silence on this list it seems like I may be attempting
> to push a square block through a round hole unfortunately. Seems I am
> back to Matlab and handle graphics - but it won't do this properly
> either.


Lots of things can be embedded into PDF documents, like javascript, flash
and svg. Maybe it would be feasible to use the gridSVG package to output
some graphics as svg with javascript to play the sounds and embed that into
a pdf?

Cheers
> Sam
>
>
> On 03/09/2007, at 5:39 PM, Bruno C.. wrote:
>
> > Are you asking on how to include an  audio file into a pdf?
> > This is already feasible via latex and the movie 15 package ;)
> >
> > Ciao
> >
> >> Hi R-ers,
> >>
> >> I'm wondering if anyone has investigated a method for embedding audio
> >> files in R graphs (pdf format), and allowing their playback to be
> >> triggered interactively (by clicking on a graph element for
> >> instance).
> >>
> >> I know how to do this in latex pdfs with the multimedia package, but
> >> it seems that R would provide a more appropriate platform for many
> >> reasons.
> >>
> >> Thanks for any help you can provide.
> >> Sam Ferguson
> >> Faculty of Architecture, Design and Planning
> >> The University of Sydney
> >>
> >> __
> >> R-help@stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide http://www.R-project.org/posting-
> >> guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >
> > --
> > Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
> > http://i-mode.wind.it/
> >
>
> --
> Sam Ferguson
> Faculty of Architecture
> The University of Sydney
> [EMAIL PROTECTED]
> +61 2 93515910
> 0410 719535
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] installing RGtk2

2007-08-04 Thread Michael Lawrence
On 8/2/07, steve <[EMAIL PROTECTED]> wrote:
>
> I am using ubuntu. When I tried install.packages("RGtk2") it downloaded
> and seemed to compile successfully:
>
> ** building package indices ...
> * DONE (RGtk2)
>
> The downloaded packages are in
>  /tmp/Rtmp57id87/downloaded_packages
>
> However, when I tried library(RGtk2) I found
>
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
> '/usr/local/lib/R/site-library/RGtk2/libs/RGtk2.so':
>/usr/local/lib/R/site-library/RGtk2/libs/RGtk2.so: undefined symbol:
> cairo_path_data_type_get_type
> Error in fun(...) : Failed to load RGtk2 dynamic library: Error in
> dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
> '/usr/local/lib/R/site-library/RGtk2/libs/RGtk2.so':
>/usr/local/lib/R/site-library/RGtk2/libs/RGtk2.so: undefined symbol:
> cairo_path_data_type_get_type
>
> Error : .onLoad failed in 'loadNamespace' for 'RGtk2'
> Error: package/namespace load failed for 'RGtk2'
>
> Any suggestions?


It looks like you found a bug in RGtk2 >= 2.10.9 that affects systems with
older versions of cairo (pre 1.2.0). This was just a typo. I will upload a
fixed version soon.

Sorry,
Michael


Steve
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to open an URL using RGtk2

2007-07-18 Thread Michael Lawrence
On 7/18/07, d. sarthi maheshwari <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am working on R 2.5.0 on window. I am trying to provide a Hyper-link to
> the user as a result, I have tried using gtkLinkButton to exercise the
> facility, however, i am not able to perform the required task, i.e. when I
> clicked on the LinkButton actually nothing happened.
>
> I have gone through the documentation for the same and found that
> GtkLinkButtonUriFunc is a function which is require to do something with
> the
> opening of the given URL. Further, I didn't find any other information
> regarding this.


You can find documentation on this by typing help(GtkLinkButtonUriFunc). You
might have to scroll down a little since the so-called "user functions" are
described in the overview file for a type.

This is the signature for that function:
GtkLinkButtonUriFunc(button, link, user.data)

So you can define such a function like:
uri_hook <- function(button, link, data) browseURL(link)

and set it with gtkLinkButtonSetUriHook(uri_hook, NULL).

A case could be made that this should be set as the default by RGtk2.

Michael

Following is my code:
>
> messlab <- gtkLabelNew(str = "Please wait!", show = TRUE)
> messwin <- gtkWindowNew(type = NULL, show = TRUE)
> messwin$Add(messlab)
> gtkWindowResize(messwin, 250, 60)
> gtkWindowSetTitle(messwin, "Graph Analysis")
>
> 
> 
> 
>
> fihor <- gtkHPanedNew(show = TRUE)
> fn <- gtkLinkButtonNewWithLabel("http://cran.r-project.org/";, "Result
> Link!")
> messwin$Remove(messlab)
> gtkLabelSetText(messlab, "Result link is ::")
> gtkPanedAdd1(fihor, messlab)
> gtkPanedAdd2(fihor, fn)
> gtkPanedSetPosition(fihor, 100)
> gtkWindowSetTitle(messwin, "Result Link")
> gtkWindowResize(messwin, 380, 60)
> messwin$Add(fihor)
>
> I am confused how to make this link workable on click?
>
> Your replies/suggestions are important to me. Please suggest solution.
>
> Thanks in advance.
> Divya Sarthi
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in installing rggobi in ubuntu linux

2007-07-09 Thread Michael Lawrence
Looks like rggobi can't find GGobi. Make sure that PKG_CONFIG_PATH contains
the path to your ggobi.pc file. For example:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

I would have assumed, however, that the ggobi package would have installed
to the /usr prefix, in which case pkg-config should have no problem finding
GGobi.

On 7/8/07, Kenneth Cabrera <[EMAIL PROTECTED]> wrote:
>
> Hi R users.
>
> I am experimenting with ubuntu 7.04 Feisty.
>
> I install the ggobi package with apt-get.
>
> I got almost all the packages, but
> when I try to obtain rggobi, I got
> this message:
>
>
> -
> install.packages("rggobi")
> Aviso en install.packages("rggobi") : argument 'lib' is missing: using
> '/usr/local/lib/R/site-library'
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> probando la URL
> 'http://cran.at.r-project.org/src/contrib/rggobi_2.1.4-4.tar.gz'
> Content type 'application/x-gzip' length 401451 bytes
> URL abierta
> ==
> downloaded 392Kb
>
> * Installing *source* package 'rggobi' ...
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for GGOBI... configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> gcc -std=gnu99 -I/usr/share/R/include -I/usr/share/R/include -g
> -DUSE_EXT_PTR=1 -D_R_=1  -fpic  -g -O2 -c brush.c -o brush.o
> En el fichero incluído de brush.c:1:
> RSGGobi.h:5:22: error: GGobiAPI.h: No existe el fichero ó directorio
> In file included from RSGGobi.h:6,
>   from brush.c:1:
> conversion.h:174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘asCLogical’
> conversion.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘asCRaw’
>
> --- snip ---
>
> brush.c:124: error: ‘t’ no se declaró aquí (primer uso en esta
> función)
> brush.c:124: error: ‘s’ no se declaró aquí (primer uso en esta
> función)
> brush.c:124: error: el objeto ‘GGOBI()’ llamado
> no es una función
> brush.c: En el nivel principal:
> brush.c:135: error: expected ‘)’ before ‘cid’
> make: *** [brush.o] Error 1
> chmod: no se puede acceder a
> `/usr/local/lib/R/site-library/rggobi/libs/*': No existe el fichero ó
> directorio
> ERROR: compilation failed for package 'rggobi'
> ** Removing '/usr/local/lib/R/site-library/rggobi'
>
> The downloaded packages are in
>  /tmp/RtmpVCacJd/downloaded_packages
> Warning message:
> installation of package 'rggobi' had non-zero exit status in:
> install.packages("rggobi")
>
> ---
>
> What am I doing wrong?
>
> Thank you for your help.
> --
> Kenneth Roy Cabrera Torres
> Cel 315 504 9339
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] RGtk2 2.10.x series available

2007-06-19 Thread Michael Lawrence
The new 2.10.x series of the RGtk2 package has recently become available on
CRAN. RGtk2 is a package for creating graphical user interfaces (GUI's) in R
and is similar in purpose to the tcltk package. RGtk2 binds to and enables
the extension of the GTK+ user interface library, as well as several other
libraries that are integrated with GTK+. The gWidgetsRGtk2 package provides
an RGtk2 implementation of the elegant toolkit-independent gWidgets API. The
cairoDevice package allows embedding of R graphics inside RGtk2 interfaces.

RGtk2 2.10.x (currently at 2.10.9-1) brings several major improvements:

* Updated bindings to the latest stable versions of all bound libraries,
which include: GTK+, GDK, GdkPixbuf, Cairo, Pango and libglade.
* The ability to create new GObject classes, including new types of widgets,
entirely from within R.
* The compilation of RGtk2 now conditions on the versions of the libraries
installed on the system. This means that RGtk2 has the same dependencies as
the original 2.8.x series, but if newer versions of libraries (ie GTK+
2.10.x) are available, it will bind to the new API.
* Much of the C-level API has been registered to be callable from the C code
of other packages (allowing packages binding other GObject-based libraries
to borrow from RGtk2).
* Many, many bugfixes and minor improvements.

RGtk2 offers several advantages over tcltk:

* Many more features (too many more to list)
* Arguably cleaner API
* Integration with gWidgets (via gWidgetsRGtk2); see the 'pmg' package for
an example of this in action.
* The ability to create new types of widgets from scratch.
* Support for building GUI's using the point-and-click interface design tool
Glade (via libglade); see the 'rattle' package for example.
* Extras: Cairo vector graphics, GdkPixbuf image manipulation, etc.

RGtk2 as well as all other packages mentioned here are available on CRAN.

Michael Lawrence

[[alternative HTML version deleted]]

___
R-packages mailing list
[EMAIL PROTECTED]
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] installing Rgraphviz under fedora 5

2007-06-13 Thread Michael Lawrence
On 6/13/07, marco.R.help marco.R.help <[EMAIL PROTECTED]> wrote:
>
> Dear list,
>
> I have a lot of troubles installing Rgraphviz.
> I installed graphviz 2.13 from  "graphviz-2.13.20061222.0540.tar"
> I installed the library Rgraphviz
>
> > getBioC("Rgraphviz")
> Running biocinstall version 2.0.8 with R version 2.5.0
> Your version of R requires version 2.0 of Bioconductor.
> trying URL '
>
> http://bioconductor.org/packages/2.0/bioc/src/contrib/Rgraphviz_1.14.0.tar.gz
> '
> Content type 'application/x-gzip' length 1522949 bytes
>
> etc etc
>
> but when I do: library(Rgraphviz)
>
> > library(Rgraphviz)
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library '/home/jke/mazu/SOFTWARE_INST/R-
> 2.5.0
> /library/Rgraphviz/libs/Rgraphviz.so':
>   libgvc.so.3: cannot open shared object file: No such file or directory
> Error : .onLoad failed in 'loadNamespace' for 'Rgraphviz'
> Error: package/namespace load failed for 'Rgraphviz'
>
> The path to Rgraphviz.so is correct !


But it's libgvc.so.3 that's missing. Make sure your LD_LIBRARY_PATH
environment variable points to the directory containing it.

Can someone help with this?
>
> this is the session info 
>
>
> regards
>
> Marco
>
>
> > sessioninfo()
> Error: could not find function "sessioninfo"
> > sessionInfo()
> R version 2.5.0 (2007-04-23)
> x86_64-unknown-linux-gnu
> locale:
>
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] "tools" "stats" "graphics"  "grDevices" "datasets"  "utils"
> [7] "methods"   "base"
>
> other attached packages:
> geneplotter latticeannotate Biobase   graph
>"1.14.0""0.15-4""1.14.1""1.14.0""1.14.2"
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] reading BMP or TIFF files

2007-06-07 Thread Michael Lawrence
On 6/7/07, Bob Meglen <[EMAIL PROTECTED]> wrote:
>
> I realize that  this question has been asked before (2003);
>
> From: Yi-Xiong Zhou
> Date: Sat 22 Nov 2003 - 10:57:35 EST
>
> but I am hoping that the answer has changed. Namely, I would
> rather read the BMP  (or TIFF) files directly instead of putting
> them though a separate utility for conversion as suggested by,


What would you like to do with the images? The GdkPixbuf bindings provided
by the RGtk2 package allow you to read both types of images. In conjunction
with the cairoDevice package, you could mix the image with R graphics.

Another way might be to use some Java library via rJava and use the Java
graphics device.

Michael

From: Prof Brian Ripley
> Date: Sat 22 Nov 2003 - 15:23:33 EST
>
> "Even easier is to convert .bmp to .pnm by an external utility. For
> example, `convert' from the ImageMagick suite (www.imagemagick.org) can do
> this. "
>
>
>
> Thanks,
> Robert Meglen
> [EMAIL PROTECTED]
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Interactive plots?

2007-05-25 Thread Michael Lawrence
You could load it into GGobi using the rggobi package and then use the
identification mode, as well as all the other interactive features...

http://www.ggobi.org

Michael

On 5/25/07, mister_bluesman <[EMAIL PROTECTED]> wrote:
>
>
> Hi there.
>
> I have a matrix that provides place names and the distances between them:
>
>Chelt Exeter London  Birm
> Chelt 0   118 96  50
> Exeter   1180   118 163
> London  96 118 0   118
> Birm  50 163 118 0
>
> After performing multidimensional scaling I get the following points
> plotted
> as follows
>
> http://www.nabble.com/file/p10810700/demo.jpeg
>
> I would like to know how if I hover a point I can get a little box telling
> me which place the point refers to. Does anyone know?
>
> Many thanks.
> --
> View this message in context:
> http://www.nabble.com/Interactive-plots--tf3818454.html#a10810700
> Sent from the R help mailing list archive at Nabble.com.
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] faster image display?

2007-04-20 Thread Michael Lawrence
Hi,

You could try the RGtk2 package using the GtkImage widget.

Like this:

library(RGtk2)
win <- gtkWindow()
image <- gtkImage(filename="foo.jpg")
win$add(image)

Should be fast...

if you need to draw R graphics on top of the image, you'd need to do
something a bit different and more complicated (draw R graphics to a pixmap
using cairoDevice and then superimpose the pixmap onto the image in the
expose handler for a GtkDrawingArea).

Hope this helps,
Michael

On 4/20/07, Issac Trotts <[EMAIL PROTECTED]> wrote:
>
> Does someone here know of a way to display images in R that isn't slow?
> Here are the things I've tried so far:
>
> library(rimage)
> i<-read.jpeg('foo.jpg')
> plot(i)  # very slow
>
> library(pixmap)
> i <- read.pnm('foo.pnm')
> plot(i) # also slow
>
> chans <- getChannels(i)
> image(chans[,,1]) # this is slow too
>
> I also tried using library(cairoDevice) but it only makes everything look
> beautiful without making the images fast.
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] graphs superimposed on pictures?

2007-04-11 Thread Michael Lawrence
I think the previous suggestions have solved your problem, but just in case
you need even more flexibility, you could try using the cairo graphics
device (cairoDevice) in conjunction with the GdkPixbuf bindings provided by
RGtk2. This allows fairly advanced image manipulation operations (scaling,
compositing, ...) on R graphics.

Michael

On 4/11/07, Robert Biddle <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I am doing some work that involves plotting points of interest
> superimposed on photographs and maps. I can produce the plots fine in R,
> but so far
> I have had to do the superimposition externally, which makes it tedious to
> do exploratory work.
> I have looked to see if there is some capability to put a background
> picture on a plot window,
> but I have not found anything.
> Advice, anyone?
>
> Cheers
> Robert Biddle
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem installing gnomeGUI in Ubuntu: "HAVE_ORBIT" was never defined

2007-04-10 Thread Michael Lawrence
If you want a GTK2-based R GUI, try the pmg package.

On 4/10/07, fsando <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot - Yes I have gnome 2.18, that must be it.
> So no gnomeGUI for me :(
>
> Michael Lawrence wrote:
> > My guess is that you have Gnome >=2.0, while the gnomeGUI only works
> > with the ancient Gnome 1.4, although I am not that familiar with the
> > package.
> >
> > Michael
> >
> > On 4/9/07, * fsando* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > I am trying to install the gnomeGUI package
> > I have tried from within R (R was started with: sudo R) with:
> > install.package()
> > and from console with:
> > sudo R CMD INSTALL /download/gnomeGUI_2.3.0-3.tar.gz
> > In both cases I get the exact same errors:
> >
> > checking for gnome-config... no
> > checking for gnomeConf.sh file in /usr/local/lib... not found
> > configure: error: conditional "HAVE_ORBIT" was never defined.
> > Usually this means the macro was only invoked conditionally.
> > ERROR: configuration failed for package 'gnomeGUI'
> >
> > Found the following in earlier message in R-help list:
> >
> >  From B R Tura
> > "So I think gnomeGUI not instalable in R now..."
> >
> > Response from Prof Ripley:
> > "This is almost entirely misinformation. gnomeGUI is a package on
> CRAN
> > (and has been for a couple of years), and can be installed just like
> any
> > other package. Like several others, it requires R to have been
> > configured with --enable-R-shlib."
> >
> > Any help would be much appreciated.
> >
> > __
> > R-help@stat.math.ethz.ch <mailto:R-help@stat.math.ethz.ch> mailing
> list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > <http://www.R-project.org/posting-guide.html>
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem installing gnomeGUI in Ubuntu: "HAVE_ORBIT" was never defined

2007-04-09 Thread Michael Lawrence
My guess is that you have Gnome >=2.0, while the gnomeGUI only works with
the ancient Gnome 1.4, although I am not that familiar with the package.

Michael

On 4/9/07, fsando <[EMAIL PROTECTED]> wrote:
>
> I am trying to install the gnomeGUI package
> I have tried from within R (R was started with: sudo R) with:
> install.package()
> and from console with:
> sudo R CMD INSTALL /download/gnomeGUI_2.3.0-3.tar.gz
> In both cases I get the exact same errors:
>
> checking for gnome-config... no
> checking for gnomeConf.sh file in /usr/local/lib... not found
> configure: error: conditional "HAVE_ORBIT" was never defined.
> Usually this means the macro was only invoked conditionally.
> ERROR: configuration failed for package 'gnomeGUI'
>
> Found the following in earlier message in R-help list:
>
> From B R Tura
> "So I think gnomeGUI not instalable in R now..."
>
> Response from Prof Ripley:
> "This is almost entirely misinformation. gnomeGUI is a package on CRAN
> (and has been for a couple of years), and can be installed just like any
> other package. Like several others, it requires R to have been
> configured with --enable-R-shlib."
>
> Any help would be much appreciated.
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Cannot install iWidgetsRGtk

2007-04-04 Thread Michael Lawrence
Hi,

iWidgetsRGtk is an obsolete package. Instead, install gWidgetsRGtk from
CRAN. That's "g" not "i".

Michael

On 4/4/07, Paul Smith <[EMAIL PROTECTED]> wrote:
>
> Dear All
>
> I am trying to install iWidgetsRGtk (on a Linux machine), but getting
> the following error:
>
> > install.packages("iWidgetsRGtk",repos="http://www.math.csi.cuny.edu/pmg
> ")
> Warning in download.packages(unique(pkgs), destdir = tmpd, available =
> available,  :
>  no package 'iWidgetsRGtk' at the repositories
> >
>
> Any ideas?
>
> Thanks in advance,
>
> Paul
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] gnomeGUI under KDE

2007-04-04 Thread Michael Lawrence
On 4/3/07, Luis Lopez Oliveros <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> Recently, I installed the KDE desktop under my Linux system, but Included
> also the Gnome desktop (actually, I installed everything that comes in the
> openSUSE cd).
>
> My question about R is the following. I would like to run some kind of
> console under Linux.


If you really need a GUI (for most needs the text console works well), I
might recommend the "pmg" package. It is a GTK2-based GUI for R and probably
has more features than the Gnome GUI.

I was reading and first I found out that there is a
> GUI under gnome, just by typing the command line R -g gnome; however, to
> do this I need first to install the package gnomeGUI. Will this package
> still work under KDE. So far I have been able to run all GNOME
> applications under KDE, but I don't know about this one.
>
> Kindly regards,
>
> Luis LO
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Using Java or Tcl/Tk in R

2007-03-29 Thread Michael Lawrence
It really depends on what you're trying to do. tcl/tk is convenient in that
support for it is included with R. There won't be any distribution
complications. Obviously, Java is fairly widespread, but then there's the
complication of installing rJava or some other R-Java binding.

If you're doing anything beyond the most trivial GUI, I would recommend the
excellent gWidgets package from John Verzani. It's available from CRAN and
provides a simple API for creating widgets from R. gWidgets supports
multiple widget library back-ends. Currently, I think there are only
backends for GTK+ (via RGtk2) and Java (swing). The RGtk2 backend is the
most mature right now. GTK+ is a cross-platform and full-featured widget
library. In my opinion it's API is more convenient for most uses than that
of Swing, and GTK+ has more features than tcl/tk.

gWidgets allows you to prototype your GUI using a simple API without
depending on a specific toolkit. Once your application matures to the point
that it requires features that are not within the scope of the simple
gWidgets API, you can make the decision about moving to a specific toolkit.

I hope this helps,
Michael

On 3/29/07, Erin Hodgess <[EMAIL PROTECTED]> wrote:
>
> Dear R People:
>
> This is more of an opinion question please:
> When putting together GUI type functions, is
> it better to use JAVA or Tcl/Tk, please?
>
> Any input is appreciated!
>
> Sincerely,
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: [EMAIL PROTECTED]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] scatterplot brushing

2007-03-19 Thread Michael Lawrence
There's also ISPlot in Bioconductor...

On 3/19/07, Greg Snow <[EMAIL PROTECTED]> wrote:
>
> Besides ggobi and iplots that have been mentioned, there is also tkBrush
> in the TeachingDemos package (requires tcltk package).
>
> Hope this helps,
>
> --
> Gregory (Greg) L. Snow Ph.D.
> Statistical Data Center
> Intermountain Healthcare
> [EMAIL PROTECTED]
> (801) 408-8111
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Richard Valliant
> > Sent: Friday, March 16, 2007 3:47 PM
> > To: r-help@stat.math.ethz.ch
> > Subject: [R] scatterplot brushing
> >
> > Is there a package (other than xgobi which requires an X
> > server) that will do scatterplot brushing?  I see a mention
> > in the mail archive of R-orca by Anthony Rossini but it is
> > not in the current list of packages.
> >
> > My OS is Windows XP version 5.1, service pack 2 R version
> > 2.4.1 (2006-12-18)
> >
> > Thanks
> >
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] scatterplot brushing

2007-03-17 Thread Michael Lawrence
Hi, just to clarify Hadley's points, GGobi is the new XGobi, but GGobi does
NOT require an X server on Windows.

On 3/17/07, hadley wickham <[EMAIL PROTECTED]> wrote:
>
> I should mention that it's very easy to install rggobi and ggobi on
> windows these days.  GGobi has a nice installer,
> http://www.ggobi.org/downloads, and rggobi is on cran.
>
> Hadley
>
> On 3/16/07, hadley wickham <[EMAIL PROTECTED]> wrote:
> > Have a look at iplots.  (and rggobi is the updated version of xggobi)
> >
> > Hadley
> >
> > On 3/16/07, Richard Valliant <[EMAIL PROTECTED]> wrote:
> > > Is there a package (other than xgobi which requires an X server) that
> > > will do scatterplot brushing?  I see a mention in the mail archive of
> > > R-orca by Anthony Rossini but it is not in the current list of
> > > packages.
> > >
> > > My OS is Windows XP version 5.1, service pack 2
> > > R version 2.4.1 (2006-12-18)
> > >
> > > Thanks
> > >
> > >
> > > [[alternative HTML version deleted]]
> > >
> > > __
> > > R-help@stat.math.ethz.ch mailing list
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible code.
> > >
> >
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] gtk button: how to create signal handler?

2007-03-13 Thread Michael Lawrence
Sarthi,

See help(gSignalConnect) for instructions on how to connect to GObject
signals.
For this particular case, try gSignalConnect(butt, "clicked", function(wid)
print("clicked!")).
See the demos included in the RGtk2 paper for numerous examples of using
gSignalConnect().

Michael

On 3/13/07, hadley wickham <[EMAIL PROTECTED]> wrote:
>
> -- Forwarded message --
> From: d. sarthi maheshwari <[EMAIL PROTECTED]>
> Date: Mar 13, 2007 5:41 AM
> Subject: [R] gtk button: how to create signal handler?
> To: r-help@stat.math.ethz.ch
>
>
> Hi
>
> Kindly correct me if I am posting a wrong query in the forum.
>
> I am trying to handle my "button:clicked" event. But not able to proceed
> further. Please help.
> Following is my code:
>
> library(RGtk2)
>
>
> win <- gtkWindowNew(type = NULL, show = TRUE)
> butt <- gtkButtonNewWithLabel("Submit", show = TRUE)
> win$Add(butt)
>
> Now I want to do something when my button is clicked. How can I grab the
> "clicked" signal and define actions against it?
>
> Thanks in advance.
>
> --
> Regards
> Sarthi M.
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] as.numeric(".1") under RGtk2

2007-01-24 Thread Michael Lawrence
This seems to be a conflict between GTK+ and R. Apparently, GTK+ sets the
locale by itself. There is a way to prevent GTK+ from doing that. I will
release a hotfix for RGtk2 soon and we'll see if it fixes it. I just need to
run gtk_disable_setlocale() before gtk_init_check().

Thanks for reporting this,
Michael

On 1/24/07, NOEL Yvonnick <[EMAIL PROTECTED]> wrote:
>
> Prof Brian Ripley a écrit :
> > I can reproduce this via
> >
> >> Sys.setlocale("LC_NUMERIC", "fr_FR")
> > [1] "fr_FR"
> > Warning message:
> > setting 'LC_NUMERIC' may cause R to function strangely in:
> > setlocale(category, locale)
> >> as.numeric(",1")
> > [1] 0,1
> >> as.numeric(".1")
> > [1] NA
> > Warning message:
> > NAs introduced by coercion
> >
> > Assuming you have not done that anywhere, it should not happen. If you
> > have, you were warned.  (Have you tried starting R with --vanilla to be
> > sure?)
> >
> > as.numeric() is using strtod which should only be affected by the locale
> > category LC_NUMERIC, and R itself does not set LC_NUMERIC.  So either
> > you or some rogue OS function must have, unless there is a pretty major
> > bug in the OS.  (Just using a UTF-8 fr_FR locale does not do it on
> > either of the Linux variants I tried.)
>
> Thanks for these helpful indications. This seems to be related to the
> RGtk2 package :
>
> # Before loading RGtk2
> > as.numeric(".1")
> [1] 0.1
> > as.numeric(",1")
> [1] NA
> Warning message:
> NAs introduits lors de la conversion automatique
> # After library loading
> > library("RGtk2")
> > as.numeric(".1")
> [1] NA
> Warning message:
> NAs introduits lors de la conversion automatique
> > as.numeric(",1")
> [1] 0,1
>
> I send a copy of this post to the RGtk2 package maintainers.
>
> Thanks for your help,
>
> Yvonnick Noel, PhD.
> Dpt of Psychology
> U. of Rennes
> France
>

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] cairoDevice 1.2 on CRAN

2006-09-21 Thread Michael Lawrence
The cairoDevice package has recently been released on CRAN. cairoDevice 
is an R graphics device based on the cairo 
(http://www.cairographics.org) vector graphics library. It is 
distinguished from many other devices in its ability to render high 
quality anti-aliased graphics. It is available on all three major 
platforms (Windows, Mac, and Linux) and requires the GTK+ 2.8.0 library 
and its dependencies. For the current users, version 1.2 fixes many bugs.

cairoDevice is capable of rendering in three different ways: to the 
screen inside a GTK+ window, to an arbitrary GtkDrawingArea that is part 
of an RGtk2 GUI, or to any GdkDrawable, allowing for example the output 
of png and jpg images derived from R graphics using the GdkPixbuf 
bindings from RGtk2.

cairoDevice is interactive in that it supports the locator tool as well 
as the getGraphicsEvent() functionality, which previously was available 
only from the Windows device.

To obtain the requisite GTK+ (>= 2.8.0) libraries:

Windows: Download and run the installer from http://gladewin32.sf.net.
Mac: DarwinPorts
Linux: packages from your distribution

Please enjoy the package and let me know if you have any problems,

Michael Lawrence

___
R-packages mailing list
R-packages@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] RGtk2 released

2006-02-01 Thread Michael Lawrence
I am pleased to announce the first beta release of RGtk2, the R binding 
to GTK 2.0 (actually 2.8.0). RGtk2 works on all three major platforms 
(Linux, Mac, and Windows) and allows one to construct full-featured 
GUI's from within R.

RGtk2 offers virtually complete bindings to the latest GTK, as well as 
some of its dependencies, including Cairo and Pango, and some extras 
like libglade and GtkMozEmbed (on Linux). Almost the entire package was 
documented by transforming the original (C language oriented) API 
documentation to the R perspective.

Please see the following website for details and downloads: 
http://www.ggobi.org/rgtk2.

You'll also find the Cairo R graphics device there, which lets you 
display R graphics within your RGtk2 GUI.

Please send any bug reports to me.

Thanks,
Michael Lawrence

___
R-packages mailing list
[EMAIL PROTECTED]
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html