Re: For all par(xpd) settings, plot is clipped (Was: [R] Place a graphic into an R-plot)

2003-09-20 Thread Roger Bivand
On Sat, 20 Sep 2003, Dirk Eddelbuettel wrote: > > Using Roger's rather useful addlogo() function (still included below), I am > unable to plot a pixmap anywhere but in the core plot region. > > In other words, when using the following code, and placing one coordinate > inside and one coordinate

For all par(xpd) settings, plot is clipped (Was: [R] Place a graphic into an R-plot)

2003-09-20 Thread Dirk Eddelbuettel
Using Roger's rather useful addlogo() function (still included below), I am unable to plot a pixmap anywhere but in the core plot region. In other words, when using the following code, and placing one coordinate inside and one coordinate outside the plot region, > library(pixmap) > logo<-read.p

Re: [R] Place a graphic into an R-plot

2003-09-18 Thread Roger Bivand
Gordon: This is a copy of an off-list reply from May 2003, which may give some assistance - not quite the same, because here the image was inserted into an existing plot. It is based on using the pixmap package to import a ppm or pnm file, then rescaling to fit the designated space. Roger Biva

Re: [R] Place a graphic into an R-plot

2003-09-18 Thread Anders Nielsen
Hi, You need to install the pixmap package to do that. After that is installed the following lines illustrate how to use it. > library(pixmap) > x <- read.pnm(system.file("pictures/logo.ppm", package = "pixmap")[1]) > layout(matrix(c(1,1,2,3),2,2)) > plot(rnorm(100)) > plot(rnorm(100)) > plot(

[R] Place a graphic into an R-plot

2003-09-18 Thread Morrison, Gordon
I have a graphic image in a file (say a *.jpeg or *.png file) and want to put it into a plot. I have segmented the plot area by means of the layout function and successfully plotted my data in the appropriate segments. I cannot find how to put my graphic image onto the same plot. Searching the arch