[R] Editing R graphics (fwd)

Emmanuel Paradis paradis at isem.univ-montp2.fr
Mon Nov 26 16:36:53 CET 2001

At 11:04 26/11/01 +0100, Agustin Lobo <alobo at ija.csic.es> wrote:


>On Fri, 23 Nov 2001, Paul Murrell wrote:
>> I would be very interested to know the sorts of things you do to add things
>> interactively to plots.
>> As one reply mentioned, there is quite a lot of flexibility in R's graphics
>> for placing additional text and graphical objects using functions like
>> text(), rect(), lines(), polygon(), ...  This can even be done with a small
>> interactive element using locator().  For example, ...
>>     plot(1:10)
>>     text(locator(1), "some annotation")
>>     # now click on the graph where you want it to go
>> However, there are things which are not possible (like selecting a piece of
>> text on a graph and moving it with the mouse).
>> Some of the work I am doing in the graphics at the moment, and in the new
>> graphics package grid, will allow *some* more interactivity (or at least
>> provide the possibility to develop it), so it would be great to know what
>> sorts of things people really would like to be able to do.
>> Any information gratefully received :)


>Sometimes I also include another (reduced) figure, for
>a reduced map indicating the geographic location of some sites, and or
>time-series of the phenology as shown by satellite imagery. Another
>example of adding ancillary information to an statistic graphic is
>adding field-collected information to a graphic that displays results
>from the analysis od remotely-sensed imagery.

Would it be possible to have a low-level plotting command that includes in
a graph a picture read from the disk? That would be device-dependent I
guess, something like

plot(x, y)
include("C:/data/picts/map.ps", location=..., width=..., height=...)

would make a PostScript file with a bivariate plot that includes a map.

This is just a suggestion, and I do not know how difficult it could be.

Emmanuel Paradis
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list