Displaying 20 results from an estimated 20000 matches similar to: "bmp() shifts the image (Windows XP)"
2005 Feb 08
1
Windows BMPs: Why grey background? How to display BMP in R?
"white" is supposed to be the default background for BMPs (according to
?bmp) but it doesn't work
> bmp("test.bmp", bg="white")
> plot(0)
> dev.off()
# results in grey background
# This seems to be a good enough workaround for now.
> bmp("test.bmp")
> par(bg="white")
> plot(0)
> dev.off()
# background is white
2004 May 27
2
no transparent background in bmp
I've been attempting to export a graphics file of my lattice plots and no
matter what color I use for the bg= argument in the bmp/jpeg/png function,
the background is grey.
bmp(filename = "c:/my_paper/resids.bmp", width=1024, height=1024,
pointsize=10, bg="transparent")
# these are lattice plots. plot them in a 3x2 matrix
print( hgqqplot, position=c(0.0, 0.66, 0.5, 1.0 ),
2012 May 08
2
PPM to BMP converter
Dear all,
Several days ago, I posted How to write a bmp file pixel by pixel. Instead of bmp, I succeeded in writing a PPM file by using the pixmap package. Thanks for the hint generously provided by Uwe Ligges.
Now I have a new question. How to convert a PPM file to BMP file in R? I know I can do this in photoshop or by some other softwares, but I think if I Can do this in R, that
2012 May 04
1
How to write a BMP file pixel by pixel?
Dear all,
I open a bmp device by the bmp() function in the png package, but I don't know how to write color pixel by pixel into the file? Any help or hint?
What I want to do is to create a 512*512 bmp file with certain dots being red and others black. I have all the pixel coordinates for the red dots, but I don't know how to draw the color on the device.
Please help
2013 Mar 05
1
Generating 1-bit and 8-bit BMP files using R
Hi,
I'm trying to use the data which I generate within R to make images in .bmp format to be lateron printed by a printer.
My first thought was the RImageJ package, but this seems to be discontinued. What I am currently doing is generating a matrix of grey values, which needs to be parsed into the right image format. Is anyone aware of a package or rather "easy" way to generate
2003 Nov 21
1
How to read .bmp files into R? read.pnm throws error
Hi,
Is there a way to read .bmp files into R? I have tried read.pnm from pixmap
package. It returned
Error in pm.readmagicnumber(con) : Not a PNM format file
Anyother ways to load bitmap images?
Yi-Xiong
2012 Oct 26
1
asking about R Code
Hi, my name is Ellen. I want to ask you about R Code.
I got a code for extracting a pixel value, but I can't compile it..
It is said "Error in is.data.frame(x) : object 'lena' not found"
Here is the original full code:
library(pixmap)
lena <- read.pnm("oldlennablur.pgm")
write.table(lena@grey,"mylenna", quote=FALSE, row.names = FALSE, col.names=
2004 Dec 30
2
coplot with png: disappearing grid lines
Dear useRs,
When I use coplot() and output to png/jpeg/bmp, the grid lines from
the scatter plots disappear. If I output to pdf() the grid lines are
there, however I can't use it - I have many points, and the resulting
PDF file is large and very slow to open and scroll through. (By the
way, if I click File-Save As-png/jpeg/bmp from Rgui.exe, the grid
lines are preserved - but I need to use
2006 Dec 08
2
trouble with cloud output to bmp when in loop
I have some data that I need to view in various 3-D clouds. To better see
the cloud structure on a 2-D screen I would like to output a bunch of bmp
files with clouds at slightly different angles, then run them through an
external program to animate them. But I'm having trouble getting cloud()
from the lattice package to output to bmp files. Oddly, this is only a
problem when outputting
2000 Jun 28
3
BMP to matrix
Hi all,
is there any R function that loads a bmp file, or any other format, and converts its grid of pixels into a matrix or data frame?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000628/f3fc8b21/attachment.html
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,
2009 Mar 03
1
dotplot() lattice charts return blank image (jpeg, bmp, png) file
Thanks in advance for the help. Trying to run a basic dotplot in lattice from R command line. When the file is created, in Fedora, it is blank image (jpeg, bmp, png). Image produces correctly in Windows environment. Libraries lattice and latticeExtra are loaded. Code:
-----------------
jpeg(file = "/tmp/img/temp31.jpg", width = 768, height=768)
xy <- dotplot(1:10)
print(xy)
2011 Dec 06
1
Read Windows BMP format images
Hello,
Does anyone know of an R package that can read Windows BMP format images? Many thanks,
Greg Jefferis.
--
Gregory Jefferis, PhD
Division of Neurobiology
MRC Laboratory of Molecular Biology,
Hills Road,
Cambridge, CB2 0QH, UK.
http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
2007 Jul 12
1
bmp => xpm
Salut Alex,
je voudrais savoir comment faire pour passer le format bmp, par exemple, en format xpm?
Est-ce qu''il est possible de lire des formats bmp(entre autre) avec StaticBitmap?
C''est toi en photo dans l''exemple de StaticBitmap?
merci
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
2007 Jun 07
2
reading BMP or TIFF files
I realize that this question has been asked before (2003);
From: Yi-Xiong Zhou
Date: Sat 22 Nov 2003 - 10:57:35 EST
but I am hoping that the answer has changed. Namely, I would
rather read the BMP (or TIFF) files directly instead of putting
them though a separate utility for conversion as suggested by,
From: Prof Brian Ripley
Date: Sat 22 Nov 2003 - 15:23:33 EST
"Even easier is
2000 Dec 03
1
crash using bmp() on windows with Rdll2010 (PR#756)
A few weeks ago I have updated R-1.1.1 for Windows with the fixed R.dll
(Rdll2010.zip) for Win2k from CRAN.
(I have used the same version of R from WinNT4 *and* Win2k for some
time.)
Now I tried to produce a bitmap, but R crashes (WinNT4):
bmp("bitmap.bmp")
plot(1:10)
dev.off() ## crash!
That does not happen with the original R.dll from R-1.1.1 (15 Aug 2000).
I cannot test on
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(*,
2009 Aug 12
1
Another Plotting Hint - changing fill color for points
Is it possible to change the fill color of a point? For example, the outer color being "Blue" and inner color being "Grey".
I've tried changing "col" and "bg", but that does not seem to have the desired effect.
Below is another attempt, but the pixel resolution of the points function does not appear to be high enough for this to work:
2007 May 30
3
sizing and saving graphics in R
Dear R wizards,
I am seeking advice on graphics in R. Specifically, how to manipulate
the size and save a plot I have produced using the LDheatmap library.
I confess I am relatively new to graphics in R, but I would greatly
appreciate any suggestions you may have.
LDheatmap produces a coloured triangular matrix of pairwise
associations between 600 genetic markers in my dataset.
2012 Jan 29
1
How I assign the result of a plot to a variable?
I can write a plot to a files of a given format using this:
x<-sample(c(1:100),10)
bmp("c:/mygraph.bmp")
plot(x)
dev.off()
and then show the image file in another application. This application can also display the image from the stream of numbers that define the image.
How I can get the plot as a stream of numbers?
[[alternative HTML version deleted]]