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
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
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
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(
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