[R] Hosting a R Graph Gallery?

Philippe Grosjean phgrosjean at sciviews.org
Mon Feb 21 11:33:08 CET 2005


Hello,

Just to add a word to what Eric said. I think a graph gallery for R 
would be a very nice initiative. Of course, the easiest way would be a 
series of HTML of WiKi pages, with downloadable example R code. However, 
if someone volunteers to start and maintain a 'GraphGallery' R package, 
it would be much better. This way, example code could be run simply with:
 > example(agraph)

Definitely, the weakness of the R-help system is that it does not allow 
pictures. Thus you have to actually run the examples to see the results. 
However, one could imagine a very simple function making thumbnails of 
all graphs in the gallery, using par(mfrow=...) and running all examples.

The complex format for graph galleries proposed by Eric, which is 
embedded in the development version of SciViews is probably not suitable 
for a wider use. A Graph Gallery for R should be better independent from 
any complement to R itself, like SciViews.

However, there are several good ideas in the format proposed by Eric 
(well, some debugging is still required), and the idea is to have a 
graph gallery that could be expanded to a GUI graph gallery, like in 
S-PLUS, that is, calling a particular graph could possibly display a 
dialog box where fields for parameters (x, y, line color, title, ...). 
Remember that SciViews is a GUI for R ;-) All this oculd be done with 
the tcltk package.

Anyway, the most important is to collect the material together. Then, 
more ambitous ways of providing code and example to R users could be 
build later...

I think that Paul Murrell, among other certainly has some good ideas, 
because he is preparing a book about R graphics 
(http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html) and his 
is, after all, the grid gourou!

Best,

Philippe Grosjean

..............................................<°}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Pentagone (3D08)
( ( ( ( (    Academie Universitaire Wallonie-Bruxelles
  ) ) ) ) )   8, av du Champ de Mars, 7000 Mons, Belgium
( ( ( ( (
  ) ) ) ) )   phone: + 32.65.37.34.97, fax: + 32.65.37.30.54
( ( ( ( (    email: Philippe.Grosjean at umh.ac.be
  ) ) ) ) )
( ( ( ( (    web:   http://www.umh.ac.be/~econum
  ) ) ) ) )          http://www.sciviews.org
( ( ( ( (
..............................................................

Eric Lecoutre wrote:
> 
> Hi,
> 
> About any graph gallery:
> Philippe Grojean and me did have made some work. Our goal was to add a 
> clip library to the SciViews project that would offer access to a graph 
> gallery. I was workiong on the production of the gallery, where as 
> Philippe is still working on his GUI API. One of the goal is to have 
> automatic wizards to make easier the creation of a graphic.
> 
> Here was our approach and some thoughts:
> 
> - We should propose a format for a description file. Here are some 
> elements that should be gathered for each graphic function:
>         - Name of the function (*)
>         - Name of the produced graphic (*)
>         - Description of the graphic (*)
>         - Number of variables (univariate / bivariate / multivariate...)
>         - Types of variables
>         - Sample code (sample graph) (*)
>         - Package (*)
> The (*) are some information already available in Rd files (except maybe 
> sample graph).
> 
> - If someone deos something, I think it would be useful to ensure that 
> all is reusable. We should focus on describing graphics. Then, for 
> example, SciViews could use the information to create a usable graph 
> gallery.
> 
> If someone is interested, I ahve put in the following archive all my 
> current code:
> http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/R/svGraphGallery.zip
> 
> There is no explanation but I would provide comments and help to any 
> volonteer (basically, there is a file  .ggs with some descriptions as 
> stated before and some R code to that produce HTML files).
> 
> The result (the current gallery) is there. It is aimed to be something 
> like 300 pixels large. At final step, graph would be clickable with a 
> wizard.
> 
> http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/R/svGraphGallery/dock/svGallery.html 
> 
> 
> 
> 
> Eric
> 
> At 08:46 21/02/2005, Robert Cunningham wrote:
> 
>> I too have often though a R-gallery would be useful.
>>
>> It seems to me that a Wiki-style page with a database backend would be
>> the best bet.
>>
>> It also seems to be that the best place to start is a complete image
>> gallery produced from all the examples in R base, then in packages in
>> CRAN. In this context the graphicsQC package
>> (http://www.stat.auckland.ac.nz/~paul/R/graphicsQC_0.4.tar.g) of Paul
>> Murrell seems useful.
>>
>> Cheers,
>>
>>
>> Robert Cunningham
>>
>>
>>
>> Romain Francois <francoisromain at free.fr> writes:
>>
>> > Hello Sander,
>> >
>> > That's a good idea and i am up to it.
>> >
>> > Right now i am in an exam period, so it's not really the better time,
>> > give me a couple of weeks and i will come up with a specific format of
>> > R files to submit to me that i could post-process to generate html
>> > documents.
>> > To my mind, those html files should show :
>> >
>> > - the plot itself
>> > + Submitter(s)
>> >         - web page
>> >         - email (eventually protected, I don't know how to do it)
>> > - Bibliographic references
>> > - Required R packages
>> > + Commentaries
>> >        - in english
>> >        - and in any other languages
>> >
>> > I'm open to any suggestion.
>> >
>> > Romain.
>> >
>> > Le 18.02.2005 14:33, Sander Oom a écrit :
>> >
>> >> Dear R users,
>> >>
>> >> Following some of the recent questions and discussions about the R
>> >> plotting abilities, it occurred to me again that it would be very
>> >> valuable to have an R graph gallery.
>> >>
>> >> Eric Lecoutre made a very nice example in:
>> >> 
>> http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf 
>>
>> >>
>> >>
>> >> It would be very useful to many beginners, but probably also
>> >> advanced users of R, to have an overview of R graph types with
>> >> graphical examples  and associated R code.
>> >>
>> >> In order to facilitate the evolution of a large gallery, some sort
>> >> of wiki environment might be most suitable, thus providing access to
>> >> all users, but with limited maintenance costs for the provider.
>> >>
>> >> Do others agree this could be a valuable resource? Would anybody
>> >> have the resources to host such an R graph gallery?
>> >>
>> >> Yours,
>> >>
>> >> Sander Oom.
>> >>
>> > --
>> > Romain FRANCOIS : francoisromain at free.fr
>> > page web : http://addictedtor.free.fr/ (en construction)
>> > 06 18 39 14 69 / 01 46 80 65 60
>> > _______________________________________________________
>> > Etudiant en 3eme année
>> > Institut de Statistique de l'Université de Paris (ISUP)
>> > Filière Industrie et Services
>> > http://www.isup.cicrp.jussieu.fr/
>> >
>> > ______________________________________________
>> > R-help at 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
>>
>> ______________________________________________
>> R-help at 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
> 
> 
> Eric Lecoutre
> UCL /  Institut de Statistique
> Voie du Roman Pays, 20
> 1348 Louvain-la-Neuve
> Belgium
> 
> tel: (+32)(0)10473050
> lecoutre at stat.ucl.ac.be
> http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
> 
> If the statistics are boring, then you've got the wrong numbers. -Edward 
> Tufte
> 
> ______________________________________________
> R-help at 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
> 
>




More information about the R-help mailing list