Paul Murrell wrote:
> Along similar lines, it would be useful if gallery entries could be
> submitted as a plain text or maybe an XML file.  Something like:
>
> <plot title="blah">
>   <desc>yadda yadda</desc>
>   <code>plot(1)</code>
> </plot>
> <plot title="blah blah">
>   <desc>yadda yadda yadda</desc>
>   <code>plot(2)</code>
> </plot>
>
> This would allow people with existing sets of plots to generate an entire
> set of gallery submissions automagically from a script.  It would also
> make it feasible to automagically generate gallery entries from the
> examples in packages such as graphics and lattice.
>
> If the central gallery repository actually stored the gallery entries in
> this sort of format (or possibly even in a database) then the gallery
> itself could be automagically "published" in a variety of different
> formats via scripts (e.g., web pages for display, web pages for editing
> entries, an enormous PDF document, an R package, ...).
>
> Paul

Huuumm, Paul,... all this remember me something: it is the definition of R help .Rd files! After all these are plain ASCII files, you can put various sections in them, you have one section to hold executable R code (example) and you already have tools to compile them into web pages, enormous PDF files, R packages, etc...

The only thing that is missing is the possibility to include pictures in them... which seem to me quite important for a graph gallery! However, I guess this could be quite easily circumvented. The key thing would be to replace the textual index by a thumbnail of icons for the various graphs. Then, the way R packages are structured is just fine. You can even embed datasets you want to use as examples to illustrate your graphs, or custom functions for producing exotic graphs.

If someone volunteers to maintain such a 'GraphGallery' package, them people could simply send .Rd pages to him, and the graph gallery would grow little by little that way. What? Why do you all look at me? No, I am not volunteer for that... at least not for the moment! I was just dreaming that it would be a nice tool for someone's "R Graphics" book that will be published shortly... :-)
Best,


Philippe

..............................................<°}))><........
 ) ) ) ) )
( ( ( ( (    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: [EMAIL PROTECTED]
 ) ) ) ) )
( ( ( ( (    web:   http://www.umh.ac.be/~econum
 ) ) ) ) )          http://www.sciviews.org
( ( ( ( (
..............................................................

[EMAIL PROTECTED] wrote:
Hi



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.



Along similar lines, it would be useful if gallery entries could be submitted as a plain text or maybe an XML file. Something like:

<plot title="blah">
  <desc>yadda yadda</desc>
  <code>plot(1)</code>
</plot>
<plot title="blah blah">
  <desc>yadda yadda yadda</desc>
  <code>plot(2)</code>
</plot>

This would allow people with existing sets of plots to generate an entire
set of gallery submissions automagically from a script.  It would also
make it feasible to automagically generate gallery entries from the
examples in packages such as graphics and lattice.

If the central gallery repository actually stored the gallery entries in
this sort of format (or possibly even in a database) then the gallery
itself could be automagically "published" in a variety of different
formats via scripts (e.g., web pages for display, web pages for editing
entries, an enormous PDF document, an R package, ...).

Paul



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 <[EMAIL PROTECTED]> 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 : [EMAIL PROTECTED] 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@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@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
[EMAIL PROTECTED]
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre

If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte

______________________________________________
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



______________________________________________
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



______________________________________________ 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

Reply via email to