Displaying 20 results from an estimated 5000 matches similar to: "Place a graphic into an R-plot"
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
Hi,
I ran into the following peculiarity involving S4 method dispatch and
namespaces.
I develop a package which have a namespace and which depends on 'pixmap'
package, which itself does not have a namespace.
Now, in my package I have a class which has a slot for objects from
class "pixmap" and I
want to have a "plot" method for this new class. Not to clutter the
2005 Aug 04
3
how to read individual values from a pixmap object
Hi All,
I have a greyscale image that I am reading in through RGDAL and placing in a
pixmap object.
As an example use the logo.jpg file that comes with the RGDAL package:
#Read the file
logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
x <- new("GDALReadOnlyDataset", logo)
#Create the pixmap object
xGrey <- getPixmapGDAL(x)
Now I would
2003 Sep 02
2
identify with image
Hola!
I will want to identify pixels in an image with the mouse, for
so getting the image data from the matrix(es), for use in subsequent
discriminant analysis. But the following bombs R:
(windows XP, rw1071)
> str(baboon)
list()
- attr(*, "size")= int [1:2] 512 512
- attr(*, "cellres")= num [1:2] 1 1
- attr(*, "bbox")= num [1:4] 0 0 512 512
- attr(*,
2003 Sep 26
2
overlay two pixmap
Hi
I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is
the basis, and on this I need to overlay a pixmapIndexed, BUT: the
pixmapIndexed has set only some of its "pixels" to an indexed color,
many of its pixels should not cover the basis pixmapGrey pixel, means,
for this "in pixmapIndexed not defined pixels" it should be transparent.
What would you
2013 Mar 22
2
read.pnm question in R-beta
In R-beta (Masked Marvel), when I do the example from the read.pnm help file, this is what happens:
x <- read.pnm(system.file("pictures/logo.pgm",package="pixmap")[1])
Warning message:
In rep(cellres, length=2): x is NULL so the result will be NULL
In R-2.15.3, it's all right.
Thanks,
Erin
Erin M. Hodgess, Ph.D.
Associate Professor
Department of Computer and
2009 Dec 03
2
adding bmp/jpg/gif to an existing plot
Hi, all.
I searched a lot at mailing list, installed EBImage and gtk packages, but I
couldn't make this simple work:
How to add a image file (jpg or bmp ou gif) to an existing plot window (not
plot over the image), like the code below (pseudo function add.image):
plot(1:10,1:10,main="test")
image = read.X("myimage.jpg")
add.image(image, x.left=2, y.bottom=4,
2007 Jan 20
3
Insert R logo
Dear all R users,
I want to insert the R logo in every graphic that I made in my Statistical
analysis using R. Can anyone tell me whether is it possible or not and if
possible how to do this? your help will be highly appreciated.
Thanks and Regards,
Arun
[[alternative HTML version deleted]]
2006 Mar 09
1
count pixels of same color in pixmap object?
Dear all,
I try to figure out how to use R to count the number of pixels of the
same color in some gray-level picture. I managed to read it in either
tiff or jpeg format, but the returned pixmap object keeps its
information out of (my) reach. Is there an easy way to tabulate the
different color/graylevel pixels and their numbers? Or should I use a
completely different (free) software?
2008 May 23
1
seeing an S4 method, not using it
Dear list,
here is a problem I met when trying to use a method for an S4 object,
without loading the package in which the method was defined. I do not
know if this is a bug, or a mistake of mine. Normally, I think the
package in which the appropriate method is defined is loaded
automatically when calling the method. The problem is that if the
package is indeed loaded automatically, the
2004 Aug 25
1
Pixmap problem
Hi,
I'm having trouble writing .pnm images which I think is due to a problem
with my colour space. The pixmap object seems to be looking for 72 of 8
colours (one per cell?) which doesn't seem healthy...
> library(pixmap)
> x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8))
> x
Pixmap image
Type : pixmapIndexed
Size : 6x12
Resolution : 1x1
2005 Aug 23
3
Plotting using image files
This is a strange request, but I want to build a scatterplot using different image files (jpegs, gif, etc.) as the plot symbols. I have thought about setting this up using a very large layout matrix, but I thought someone might have a better approach. Furthermore, is there any way to have R paste an image file into a specific coordinate within a scatterplot?
Thanks in advance,
Mike
Mike
2003 Jan 29
1
Error
people,
I'm using the pixmap library and method read.pnm() for to read figures and
it's
giving the following error:
Error in substr(inpstr, com1, stop = ns) :
evaluation is nested too deeply: infinite recursion?
I think that to be because of its size.
Am I correct?
Tks,
Francisco.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Francisco JĂșnior,
Computer Science - UFPE-Brazil
"One
2003 Feb 28
2
File opening error after 1020 files opened
Hi,
I am trying to use "read.pnm" from the package "pixmap" to read more
than 10 thousand image files in "mydir".
> file.list <- dir( "mydir", full=T)
> for( i in 1:length(file.list) ) {
print(i)
x <- read.pnm(file.list[i])
}
In the beginning it was fine. But after reading 1020 images or so, the
read.pnm function
seems to crash on
2003 Jun 24
1
Reading graphics files
Is there a tool for reading a graphics file into an object? I might not
be looking with the correct vocabulary, but I'm finding lots of references
to producing graphics from R, but not any for inputting graphics into R.
I'd like to use a jpeg image and have the data available in R for
analysis. I could convert the image to another format, PPM perhaps, and
parse that in, GRASS seems like
2001 Sep 06
1
RFC: package pixmap
There is a new package pixmap in $CRAN/src/contrib/Devel which
provides a first shot at a class hierarchy for bitmapped images (as
both bitmap and image are already taken I named it pixmap ... if
somebody has an idea for a better name, please let me know).
This is by no means meant to be final ... more like a basis for
discussion about classes for that purpose. It already has RGB, indexed
and
2005 Nov 21
3
PNG-import into R
Hi there
I'm looking for a function to read PNG-bitmap-images from a file into R.
I only found:
- the pixmap-package which cannot import png or similar formats
- the rimage-package which can only import lossy jpeg-images (the
convertion from png to jpeg modifies the data!)
Is there any possibility to read PNG-files?
Thanks for any help
Dominic Sydler
2004 Oct 14
2
fidelity of generated raster images (R and perl)
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Why R: Yes, I can do this more efficiently and precisely
with a perl module like Image::PBM. Been there,
done that many times, etc. (Just humor me.
I'm trying to do this with R for a number of reasons.)
Problem:
2002 Feb 20
3
importing images
I would like to import "tif" images in R and I do not find any
function that can do that. In Matlab there exists the function "imread"
that can read the most known images format. Does a similar function
exist for R ?
Thanks in advance
--
Herve CARDOT
____________________________________________________________
Unite Biometrie et Intelligence Artificielle, INRA Toulouse
BP
2002 Mar 18
4
Plot 3d
There exists a plot 3d functions (or similar) in R?
Thanks,
========================================
Cezar Freitas (ICQ 109128967)
IMECC - UNICAMP
Campinas, SP - Brasil
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
2004 Feb 14
1
Digital Image Processing
I have seen several posts (but few answers) in "R-help search" as to whether there are any packages that use R to process digital images. There are several categories related to the general type of problem that are useful to know about:
-- Any existing packages for taking a digital image format {any flavor like TIFF, jpg, png, or GIF (or even TWAIN input)} and representing it internally