Displaying 20 results from an estimated 500 matches similar to: "reading an image and adding a legend"
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
2009 Jan 22
1
help using zeroinfl()
Hi all,
I have been trying to use zeroinfl() with the pscl package with R version 2.1.1. and with the newest versions of the contrib packages compatible with R 2.1.1.
I have read the examples, the vignette and all the posts relating to zeroinfl() but I am still confused as to how to structure the model.
Here is a small example; the error message is the same for big data sets
2009 Jun 02
2
newbie help: simple operations in R
Hi, i' d like to use R for simple calculations. I show you an examples to
make clear my help request
I' ve a file .csv like this (my real file is composed by 10.000 lines and 8
columns)
x y
3 4
1 7
I' ve imported in R correctly. Now i want create a new variable named "t"
and t is defined throught this relation:
t = 4 (second element on x column) * 4 (first element on y
2009 May 29
1
data manipulation involving aggregate
hi all,
I often have a data frame like this example
data.frame(sq=c(1,1,1,2,2,3,3,3,3),area=c(1,2,3,1,2,3,1,2,3),habitat=c("garden","garden","pond","field","garden","river","garden","field","field"))
for each "sq" I have multiple "habitat"s each with an associated "area".
I
2009 Feb 19
4
type III effect from glm()
Hi all,
This could be naivety/stupidity on my part rather than a problem with model output, but here goes....
I have fitted a fairly simple model
m1<-glm(count~siteall+yrs+yrs:district,family=quasipoisson,weights=weight,data=m[x[[i]],])
I want to know if yrs (a continuous variable) has a significant unique effect in the model, so I fit a simplified model with the main effect ommitted...
2009 Mar 10
1
help structuring mixed model using lmer()
Hi all,
This is partly a statistical question as well as a question about R, but I am stumped!
I have count data from various sites across years. (Not all of the sites in the study appear in all years). Each site has its own habitat score "habitat" that remains constant across all years.
I want to know if counts declined faster on sites with high "habitat" scores.
I can
2006 Jan 27
0
Any ESRI users? Upgrade 3.0.14 to 3.0.21a broke Arcmap layer loading?
We just upgraded our samba server from 3.0.14 to 3.0.21a and have discovered
a subtle but very painful problem.
Users of ESRI ArcMap (on fully patched Windows XP clients) are unable to
read complex layered file data.
Arcmap works fine with 3.0.14, it works fine with the data on a windows
share, and it works fine when I set up a server to run the version of samba
shipping with Solaris 9 (3.0.2! ).
2006 Jan 30
1
SOLVED was Re: Any ESRI users? Upgrade 3.0.14 to 3.0.21a broke Arcmap layer loading?
Did not hear from anyone on this, so maybe we are the only ESRI users who
got bit, but this turned out to be an issue with oplocks. Disabling oplocks
on the server eliminated the problem.
On 1/27/06, Elizabeth Schwartz <betsy.schwartz@gmail.com> wrote:
>
> We just upgraded our samba server from 3.0.14 to 3.0.21a and have
> discovered a subtle but very painful problem.
> Users of
2010 Jan 25
4
R Output and ArcGIS
Dear all,
I've been using R on a Mac to process some data for export to ArcMap GIS (which only runs on Windows). ArcMap seems to require tab-delimited data (my data are in 3 columns), so I've been using the sep="\t" argument. However, this resulted in strange end-of-line characters when displayed on a PC. I looked in the write.table help file to find that eol="\r\n"
2008 Jan 17
4
things that are difficult/impossible to do in SAS or SPSSbut simple in R
Good morning,
I use SAS and R/S-Plus as my primary tools so I have a lot of experience with these programs. By far and away, SAS is superior for handling the "messy" datasets, but also the very large ones. I work at times with datasets in the hundreds of thousands (and on occasion, millions) of records. SAS, and especially PROC SQL, are invaluable for this. But once I get to
2007 Oct 09
2
Help with gamm errors
Dear All
Hopefully someone out there can point out what I am missing! I have a
(large, several hundred) dataset of gardens in which over two years the
presence/absence of a particular bird species is noted each week. I have
good reason to believe there is a difference between the two years in the
weekly proportion of gardens and would like to assess this, before going on
to look in more detail at
2007 Nov 21
2
Reconstruct array dataset
Hi there
I have an interesting problem:
My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of the supposed second row and so on...)
how can I tell R to switch after 11 read values to the next row,
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 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
2008 Jan 14
6
Ceiling to the nearest ten?
R-users,
Is there a function for ceiling to the nearest ten?
a <- 1:10*4
a
[1] 4 8 12 16 20 24 28 32 36 40
The resulting vector should look like this ("ceiling to the nearest ten")
[1] 10 10 20 20 20 30 30 40 40 40
Thanks in advance
Lauri
2009 Oct 19
1
Spatstat: xy binary data into mask type to use in owin(mask=)
Dear users,
I am trying to export polygons from Arcmap into Spatstat to run some
simulations using functions available in Spatstat package.
One particular area to be exported is formed by a number of polygons
defining the external boundaries of the area (as a groups of islands) and a
number of polygons inside the previous ones, as ?holes? not to be
considered as part of the area.
I have
2007 Nov 26
1
spss, string factors, selecting
Hi,
I am having trouble with a large dataset I am importing from SPSS.
The problem is I have to merge two datasets (which seems to be
working OK) then select rows based on attributes. I have a column
with either blank cells, B or E entered. I want to select all rows
with E. I have other columns with numerical data which I will then do
analyses on.
data[column==" E"] does not
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
2008 Jul 28
1
Are there any packages that can process images other than pixelmap (i.e. pnm)?
Hi, all,
I am having trouble getting R to take pnm images via mogrify
i.e.
mogrify -resize 320x217 -format pnm *.png
However R via pixmap says that it can't read the file. If you have
any ideas like a package that can read jpeg files, etc., I would
appreciate it.
Best wishes,
Art Roberts
University of Washington
2003 Feb 01
1
Try for to use in read.pnm()
Hi,
I don't obtain to use try to capture an error of read.pnm().
I was using:
res <- try(read.pnm(file_name))
But I don't understand that the variable res represents, or eiher, as I
can access its attrbites.
Tks,
Francisco.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Francisco J?nior,
Computer Science - UFPE-Brazil
"One life has more value that the
world whole"