Displaying 20 results from an estimated 8000 matches similar to: "New CRAN package sp: classes and methods for spatial data"
2003 Oct 31
0
A package for spatial data classes: request for comments
Much like time, spatial locations are not likely to change for observed
data. Still, R has no infrastructure or knowledge about spatial locations.
Many packages that deal with spatial data in R use their own classes
to deal with spatial data. On the workshop on spatial statistics software
held during DSC2003 (organized by Roger Bivand), we decided that
a base class that defines classes for
2012 May 07
0
FW: Overlapping area Script
Dear All
I would really appreciate some help with a script which a colleague wrote for me, but I am having problems running (and have not been able to contact my colleague).
The script is designed to compare the area of suitable habitat in binary projections of a large number of species current and future distributions, and create an excel file detailing the total area suitable in the
2011 Sep 14
1
S4 method dispatch
List,
In order to get rid of some old, unreadable S3 code in package sp, I'm
trying to rewrite things using S4 methods. Somewhere I fail, and I
cannot sort out why. In order to isolate the problem, I created two
functions, doNothing<- and dosth, and both should do nothing. The issue
is that in most cases they do nothing, but in some cases dosth(obj)
changes the class of obj and breaks with
2006 Nov 27
2
[R-sig-Geo] plot() and Jpeg() increase font size and resolution
Thanks to Edzer and Roger,
I can now plot with increased font sizes. However, jpeg still does not
reproduce these, nor does it show up in high quality. What I would like
to do is produce some highresolution jpegs.
Any help would be appreciated
Thanx
Herry
R2.4 on Mandriva 10.2 linux.
Dr Alexander Herr
Spatial and statistical analyst
CSIRO, Sustainable Ecosystems
Davies Laboratory,
University
2008 Feb 17
1
random location in polygons sp spsample splancs csr
Dear all,
I had to place points at random, one in each of larger number of
polygons (actually in objects of class 'SpatialPolygonsDataFrame' , see
sp library), and tried first to do it using spsample (from sp).
Surprisingly, every 5-15 trials, the output was a NULL value. The doc
says that ' this may occur when trying to hit a small and awkwardly
shaped polygon in a large
2016 Jun 09
1
cumsum method in Math group
When running
a = runif(10)
class(a) = "foo"
Math.foo = function(x, ...) {
NextMethod(.Generic)
}
signif(a, 3)
cumsum(a)
I don't understand why cumsum strips the class, but signif does not.
Both claim in the documentation that "These are generic functions:
methods can be defined for them individually or via the ?Math? group
generic."
--
Edzer Pebesma
Institute for
2018 Sep 05
0
[FORGED] Re: plotmath degree symbol
Thanks, Paul -- setting the ~/.fonts.conf file the way ?X11 describes it
under the section you pointed to resolved the problem for me, on ubuntu.
On 09/04/2018 11:55 PM, Paul Murrell wrote:
> Hi
>
> Thanks for that, but I still cannot confirm on ...
>
> sudo docker run -v $(pwd):/home/work/ -w /home/work --rm -ti
> rocker/r-ver:3.5.1
>
> Could you please read the
2018 Sep 04
2
[FORGED] Re: plotmath degree symbol
Hi
Thanks for that, but I still cannot confirm on ...
sudo docker run -v $(pwd):/home/work/ -w /home/work --rm -ti
rocker/r-ver:3.5.1
Could you please read the comments within the "Cairo Fonts" section of
the ?X11 help page, in case that offers some explanation.
Paul
On 29/08/18 02:15, Martin M?ller Skarbiniks Pedersen wrote:
> On Fri, 24 Aug 2018 at 19:53, Edzer Pebesma
>
2009 Jan 02
0
Spatial Data Analysis in R [was: Basic Question about use of R]
resending to provide a more informative subject line....
On Fri, Jan 2, 2009 at 3:21 PM, Kingsford Jones
<kingsfordjones at gmail.com> wrote:
> Hi David,
>
> A general answer to your question is: yes, R would be useful for such
> analyses - particularly when interfaced with a GIS. For an
> introduction to the types of spatial tools available in R see the Task
> View for
2018 Aug 28
0
plotmath degree symbol
On Fri, 24 Aug 2018 at 19:53, Edzer Pebesma
<edzer.pebesma at uni-muenster.de> wrote:
>
> In plotmath expressions, R's degree symbol, e.g. shown by
>
> plot(1, main = parse(text = "1*degree*C"))
>
> has sunk to halfway the text line, instead of touching its top. In older
> R versions this looked much better.
I can confirm this problem.
R version 3.5.1
2012 Jan 18
1
how to check all CRAN dependencies for my package, before submitting
Suppose I'm author of a package on which quite a few other packages
depend. When I submit to CRAN, I run R CMD check on it, Kurt does that
too, and if things work out fine, it is accepted. When one or more of
the packages that depend on it break because of my changes, however,
hell breaks loose.
I would like to extend my testing (currently: R CMD check pkg) to
running R CMD check on all
2015 Mar 13
0
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
This warning message is on my to-look-at list; I agree that sometimes it's obviously possible for the system to get the information if it tries hard enough.
The message means what it says: Class information in a session includes the currently loaded subclasses of a particular class. Not critical but sometimes useful.
In this case, (as I understand it without having looked recently), the
2015 Mar 12
2
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
Hi
I am seeking to understand why the methods package (to be specific
`methods:::.findOrCopyClass` when called by `setIs` when called by
`setClass`) emits a warning message such as
` class "SpatialLinesNULL" is defined (with package slot 'rgeos') but no
metadata object found to revise subclass information---not exported? Making
a copy in package 'minweSpatialNULL `
2018 Aug 24
4
plotmath degree symbol
In plotmath expressions, R's degree symbol, e.g. shown by
plot(1, main = parse(text = "1*degree*C"))
has sunk to halfway the text line, instead of touching its top. In older
R versions this looked much better.
--
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081
2011 Nov 14
0
R Development Center(s)
A while ago our institute was approached by a large company, say XXX,
who asked whether we would like to become an Xxx development center, as
we are active in the same area. After some negotation we did, believing
there will be mutual benefits.
Some time later, after putting up the Xxx development center logo on
the institute home page, my feeling grew that we are also, and probably
to a larger
2018 Jan 16
0
Steps to create spatial plots
Sorry for the emails, I just wanted to have an example.
layer$z
1 1 3 4 6 2
2 3 4 1 2 9
1 4 5 2 1 8
How to convert the matrix to layer$z = c(1, 4, 5, 2, 1, 8, 2, 3, 4, 1, 2,
9, 1, 1, 3, 4, 6, 2)?
I think this vector is the order that levelplot can use. Thanks again.
On Mon, Jan 15, 2018 at 10:58 PM, lily li <chocold12 at gmail.com> wrote:
> Hi Bert,
>
> I think
2017 Sep 22
2
S4 method implementation for S3 class
2017-09-22 19:04 GMT+02:00 Michael Lawrence <lawrence.michael at gene.com>:
> The %*% function is a primitive. As it says in the documentation under
> ?Methods_Details
>
> Methods may be defined for most primitives, and corresponding
> metadata objects will be created to store them. Calls to the
> primitive still go directly to the C code, which will
2018 Jan 15
0
Steps to create spatial plots
You will need to coerce your data into a "spatial" kind, as implemented in
`sp` or as of late, `sf` packages. You might want to give the vignettes a
whirl before you proceed.
Roughly, you will have to coerce the data to Spatial* (you could go for a
point, raster or grid type, I think) and also specify the projection. Once
you have that, plotting should be handled by packages.
Here are a
2018 Jan 16
0
Steps to create spatial plots
>From your description, I am **guessing** that you may not want a "spatial
map" (including projections) at all, but rather something like a level
plot. See ?levelplot in the lattice package for details. Both I am sure
ggplot2 has something similar.
Apologies if I havemisunderstood your intent/specifications.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is
2017 Sep 22
0
S4 method implementation for S3 class
On Fri, Sep 22, 2017 at 10:28 AM, I?aki ?car <i.ucar86 at gmail.com> wrote:
> 2017-09-22 19:04 GMT+02:00 Michael Lawrence <lawrence.michael at gene.com>:
>> The %*% function is a primitive. As it says in the documentation under
>> ?Methods_Details
>>
>> Methods may be defined for most primitives, and corresponding
>> metadata objects will be