Thanks.
Now it can run and generate plots, but there are the two lines on each of
the plots. I don't know the problem for this?
Error using packet 1
any(sp) is not TRUE
On Thu, Mar 8, 2018 at 8:48 AM, Eric Berger wrote:
> You need to load the package 'rasterVis'
>
> > library(rasterVis)
>
> H
library(sos)
findFn( "layer" )
findFn( "levelplot" )
Also, experts in spatial analysis tend to answer questions on the special
mailing list where the Posting Guide says they should. Read it to find out
where that is.
--
Sent from my phone. Please excuse my brevity.
On March 8, 2018 7:11:34 AM
You need to load the package 'rasterVis'
> library(rasterVis)
HTH,
Eric
On Thu, Mar 8, 2018 at 5:11 PM, lily li wrote:
> Hi all,
>
> I ran the code:
> > s <- stack(replicate(2, raster(matrix(runif(100), 10
> > xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)),
> +
Hi all,
I ran the code:
> s <- stack(replicate(2, raster(matrix(runif(100), 10
> xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)),
+ z1=runif(10), z2=runif(10))
> levelplot(s, margin=FALSE, at=seq(0, 1, 0.05)) +
+ layer(sp.points(xy, pch=ifelse(pts$z1 < 0.5, 2, 3),
4 matches
Mail list logo