Hi there
I have been working on this over the weekend. I have managed to make some
progress.
Now I am trying to run the enfa using this code: enfa(pc, pr, scan=FALSE).
I can define pc using my text file of the locality data for my species using
this code: pc - dudi.pca(locs, scannf=FALSE).
Hi,
Typing ?enfa (after loading adehabitatHS) and searching through the
examples that are provided, you should find these lines
## We prepare the data for the ENFA
tab - slot(map, data)
pr - slot(count.points(locs, map), data)[,1]
Maybe you could start with this, i.e. understanding how the
Hi,
Typing ?enfa (after loading adehabitatHS) and searching through the
examples that are provided, you should find these lines
## We prepare the data for the ENFA
tab - slot(map, data)
pr - slot(count.points(locs, map), data)[,1]
Maybe you could start with this, i.e. understanding how the
It is strange that when trying to apply
ggmap(al1) + geom_point(data=points,colour=red, size = 4) +
+ geom_point(data=points2,colour=grey90, size = 1.5)
only data=points are shown the other points are all removed
On Mon, Apr 15, 2013 at 3:54 AM, jeandaniel.sylvain
Hi group,
Trying to plot with ggplot2 different datasets of coordinats inside the
same chart.
Till now I can plot
ggmap(al1) + geom_point(data=points,colour=red, size = 4)
where points are tables
lonlat
41.00 19.02
but I need to add other sets of points(tables of coordinates)
lon
Hi,
This worked for me but I only tried with ggplot:
1°) add a colum $type to your differents dataset to discriminate them
2°) join then your datasets in one dataframe (rbind)
3°) then in ggmap use fill=type, so as: ggmap(al1) + geom_point(data=points,
aes(size = 4, fill=type))
Hope it works,
Thanks Kevin,
trying your example
df-data.frame(type,lon,lat)
points-df
names(points) - c('lat', 'lon') al1 = get_map(location = c(19.817955,
41.33071), zoom = 14, maptype = 'roadmap')
ggmap(al1) + geom_point(data=points, aes(size = 4, fill=type))
I get error :
Warning message:Removed 41
Hi Alexandre
I have looked at the examples already and those in SP package too before I
posted my question.
When I run this line of code from the example: pr - slot(count.points(locs,
join), data)[,1], I get the following error:
Error in count.points(locs, join) :
w should inherit the class
Saman,
Ben Graeler managed to reproduce the same effect by:
library(gstat)
data(meuse)
coordinates(meuse) - ~x+y
obj = gstat(NULL, D1, zinc~1, meuse[1,], set = list(zero_dist = 3))
obj = gstat(obj, D2, zinc~1, meuse[2,])
variogram(obj, cross = ONLY, pseudo = T, boundaries=c(0,100))
Dear List,
This is rather a theoretical question, but I was wondering if someone on the
list can help me out.
I have a dataset where at each spatial location I have a binary sequence of
character presence/absence, so, for example at location A, I might have spatial
coordinates xA=2390 and
10 matches
Mail list logo