Displaying 20 results from an estimated 500 matches similar to: "asking about R Code"
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
2003 Apr 22
3
Problem with pixmap on R 1.7.0?
Hi R users:
I got the following message when I use the pixmap library
on R 1.7.0 over w2K platform (on R 1.6.2 it runs right).
pixmapGrey(matrix(c(0,1),128,128))
Error in .class1(object) : Object "from" not found
I download the library .zip file from:
http://cran.r-project.org/bin/windows/contrib/1.7/pixmap_0.3-2.zip
Other question:
When I try to "Install package(s) from
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 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
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?
2001 Aug 29
2
Missing functions in package e1071(Win*)
Hi!
After unziping the CRAN file e1071.zip
on my Win95 library directory, I start R and
type
>library(e1071)
After that, help commands of the e1071
functions work (i.e., help(read.pnm), BUT
some functions themselves are not available:
> read.pnm
Error: Object "read.pnm" not found
I've looked at the file library/R/e1071 with
an ascii editor and it seems like the functions
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:
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
2011 Aug 01
2
if function problems
Dear All,
Sorry to bother
I want to write a function in R using if
Say I have a dataset x,
if x[i]<0, then x[i]=x[i],
if x[i]>0, then x[i]=0
for example, x=-3:3,
then using the function, x becomes [-3,-2,-1,0,0,0,0]
I write the codes as follows,
gjr=function(x)
{lena=length(x)
for(i in 1:lenx)
if (x[i]<0) return (x[i])
if (x[i]>0) return (0)
x}
but then, doing
gjr(x?
it only
2007 Dec 26
1
probability from different values
Hi all,
i'm new R user and i need some help:
i have two vectors (A and B) and i need create another vector (C) from the subtraction of A's values with the B's values. How can i estimate the probability of C's values if i have differents values combinations of A and B that can result in the same value? like 90 -20 = 70 and 91 - 21 = 70.
example:
B = {18 18 18 19
2000 Oct 09
2
a listening test tool
"Willmore, David (VS Central)" wrote:
>
> Can ogg22pl take input from standard in? Sometimes leaving the file name
> off will default it to that or by putting a '-' as the file name. Similar
> things go for standard out. (stop me if these aren't familiar terms)
Ogg22pl is is ogg123 with only the sampling rate variable changed. So if
ogg123 can do that,
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 May 18
8
Simple plotting errors
Dear R Users,
I have 12 data frames, each of 12 rows and 2 columns.
e.g. FeketeJAN
MEAN SUM_
AMAZON 144.4997874 68348.4
NILE 5.4701955 1394.9
CONGO 71.3670036 21196.0
MISSISSIPPI 18.9273250 6511.0
AMUR 1.8426874 466.2
PARANA 58.3835497 13486.6
YENISEI 1.4668313 592.6
OB 1.4239179 559.6
LENA 0.9342164
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
1999 Nov 11
2
Display Pictures in R
Hi,
how can I import pictures in R (e.g. bmp or tiff) and display them in an X11?
Thanks
Sigurd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/19991111/9923e65c/attachment.html
2001 Aug 13
1
export-problem
Hello!
I am trying to export a data-file from SAS to R. It says in the R program
that the SAS file should be in XPORT-format. I assume that the file should
have and .xpt extension. But when I try to open the file in R I get only
the message "compressed" written all over. So, probably I should
un-compress the file in the R-program, the question is how?
Very greatful for quick help!
2008 Nov 23
2
Latin Hypercube with condition sum = 1
Hi
I want to du a sensitivity analysis using Latin Hypercubes. But my
parameters have to fulfill two conditions:
1) ranging from 0 to 1
2) have to sum up to 1
So far I am using the lhs package and am doing the following:
library(lhs)
ws <- improvedLHS(1000, 7)
wsSums <- rowSums(ws)
wss <- ws / wsSums
but I think I can't do that, as after the normalization
> min(wss)
[1]
2009 Oct 19
2
Time Series Data
Hi all and thanks in advance.
I am regressing Time and Weight, and then predicting Weight at
different Time. The format of the Time data is day/month/year. How
can I get R to use time series data such as this?
Keith
--
M. Keith Cox, Ph.D.
Alaska NOAA Fisheries, National Marine Fisheries Service
Auke Bay Laboratories
17109 Pt. Lena Loop Rd.
Juneau, AK 99801
Keith.Cox at noaa.gov
marlinkcox at
2002 Oct 14
1
import a bitmap image and add it to graphics display
Hello
Is there a possibility to import and add a bitmap image (png or
similar) to a R graphics display. It would be helpful e.g. to
locate positions of points of a scanned map or to add a background
to a R graphic.
Wolfram
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2010 Oct 05
1
Tukey HSD Test als Post Hoc Test nach einem GLM inkl. Anova
Hallo,
zur Analyse von Daten zum Artenreichtum von Pflanzen, habe ich ein Glm (glm)
und anschlie?end eine Anova (anova) durchgef??hrt. Nun m??chte ich f??r die
signifikanten Einflussfaktoren einen Post Hoc Tukey Test durchf??hren, um zu
ermitteln in wie weit die einzelnen Faktorstufen sich signifikant
voneinander unterscheiden.
Mit dem Befehl (TukeyHSD) komme ich nicht