Displaying 20 results from an estimated 3000 matches similar to: "levelplot behaviour when "at" cuts the z range"
2003 Aug 21
2
levelplot behaviour for panel with constants
In the example:
x = rep(c(0,0,1,1),4)
y = rep(c(0,1,0,1),4)
z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1)
f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)))
levelplot(z~x+y|f,data.frame(x=x,y=y,z=z,f=f))
I noted that the last ("d") plot remains empty. I guess the
reason for this is that the values are constant (1), but I consider
it more
2003 Oct 27
3
Lattice: no grid name space
The following now occurs to me when I try to
load lattice (R 1.7.1, debian stable):
> library(lattice)
Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) :
package `grid' does not have a name space
Error in library(lattice) : package/namespace load failed
I did an update.packages() as root recently.
Any idea what's wrong?
--
Edzer
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
>
2006 Jan 09
1
How to use filled.contour(x,y,z) data for levelplot(z)?
Dear all,
We used the following function to create a spatial plot of a raster image:
filled.contour(xx,yy,zz, color = terrain.colors, nlevels=10,
main=naamjaar, plot.axes = { contour(Xcoord/1000,Ycoord/1000,lim.data,
nlevels = 4, col=4,drawlabels = T, axes = FALSE, frame.plot = FFALSE,
add = TRUE);axis(1); axis(2);
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
2006 Apr 18
1
levelplot
> I'm running debian unstable, and have been happy with the packages
> that Dirk provides for unstable so far. update.packages() doesn't seem to
> update lattice to 0.13.
It's in a special directory (because it's not compatible with R 2.2) that
update.packages doesn't know about (I think).
> Perhaps email to r-sig-debian?
Sounds like the proper way to go, so
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
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
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 `
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
2008 Oct 10
4
how to convert source code in windows package for linux (ubuntu)
Hi All,
I was wondering if anyone here as successfully converted a package for
windows to one that will work in Linux?
What are the necessary steps if you have the source code?
Thanks,
Josh
2006 Jun 03
1
default value for cutoff in gstat variogram()
I wonder what is the default value for the argument 'cutoff' when not
specified in the variogram.formula function of gstat. Computing
variogram envelops within gstat, I am comparing the results obtained
with variog in geoR and variogram in gstat, and it took me a while
before understanding that the cutoff default value is not the maximum
distance.
Can Edzer tell us about it?
All the
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
2010 Jan 09
0
[Lattice] panel.levelplot - shrink argument to highlight absolute z-values
Hi -
I have a levelplot with positive and negative z-values. I'd like
to scale the levelplot rectangles proportional to the *absolute*
z-values to highlight the z-value extremes (while retaining the color
difference to track the positive/negative attribute). I've likely
missed something in the documentation, but have been at it a couple
days without finding a solution (other than
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
2006 Sep 13
1
forcing levelplot to use relative cuts (ie cuts for each panel)
Dear guRus,
I'm having trouble producing a levelplot with relative cuts for each
panel (my data has large differences in scales, so I want to use
quantiles for each panel).
My attempts to change the 'at' argument in panel.levelplot function
have not met with success.
Below is a toy example.
xy <- expand.grid(x = 1:3, y = 1:3)
aaa <- rbind(cbind(xy, z = 1:9, site =
2015 Mar 13
1
Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
On looking more closely, the purpose of finding the class definition is to update the entry for the new relationship, as the warning message suggests. That requires that the namespace holding the definition be writable.
In the case of subclass information, the original namespace is very likely to be locked, if it's not the package currently being loaded. Copying the definition in order to
2003 Nov 10
4
predict.lm with (logical) NA vector
I was surprised by the following (R 1.8.0):
R> lm.fit = lm(y~x, data.frame(x=1:10, y=1:10))
R> predict(lm.fit, data.frame(x = rep(NA, 10)))
1 2 3 4 5
-1.060998e-314 -1.060998e-314 -1.060998e-314 -1.060998e-314 -1.060998e-314
6 7 8 9 10
0.000000e+00
2004 Oct 07
3
"R CMD check" with R 2.0.0
G'day all,
I am not sure whether I should file this as a bug report, but I
thought that I should make the developers of R aware of the following
feature:
I have just installed R 2.0.0 and when I run "R CMD check" on the
source of some packages, I noticed that the XXX-examples.ps file
contains one page with two graphics overlaid. This seems to happen
when the first graphic is
2010 Apr 21
1
'cuts' option in levelplot()
Hi All,
Does anyone knows what exactly "cuts=some number" (say 15) does in lattice's
levelplot(). I doubt this but does it uses cut() internally, something like
cut(z, 15)?
Thanks,
Gurmeet
[[alternative HTML version deleted]]