[R-sig-Geo] Reshape data frame for choropleths plotting

2015-06-26 Thread Endri Raco
Dear All, I have a dataframe as below: *name surnameyear sexcity1 city2 city3 * *AAAAA 2011male 1020 30* *BBBBB 2011female 2515 25* *CC CCC2012male 16 54 32*

[R-sig-Geo] Add annotation to points using ggmap

2013-04-20 Thread Endri Raco
Hi group, I printed hdf - get_map(location = c(19.817955, 41.33071), zoom = 14, maptype = 'roadmap') ggmap(hdf, extent = 'normal', maprange = TRUE) + + geom_point(aes(colour = class), data = chkpts) + + theme_nothing() + theme(legend.position = 'right') where data = chkpts is like

[R-sig-Geo] How to plot map with overlay points

2013-04-19 Thread Endri Raco
Hi group. I have coordinates as in file attached. Trying to print this as points with different colors I follow the commands: al1 = get_map(location = c(41.325997,19.822027), zoom = 10, maptype = 'roadmap') ggmap(al1) + geom_point(data=points, aes(x=lat, y=lon5,colour = type)) The problem

[R-sig-Geo] (no subject)

2013-04-18 Thread Endri Raco
Hi group, I am stacked in a problem like this. I have a bus stop with known coordinates. I generate in R language distances from this bus stop. Values of these distances are like below (in km) 0. 0.02725136 1.07634471 1.15963225 1.71421571 2.54945626 4.29135102 4.53532958

[R-sig-Geo] How to calculate the latlng of a point in a certain distance away from another?

2013-04-18 Thread Endri Raco
Hi group, I am stacked in a problem like this. I have a bus stop with known coordinates. I generate in R language distances from this bus stop. Values of these distances are like below (in km) 0. 0.02725136 1.07634471 1.15963225 1.71421571 2.54945626 4.29135102 4.53532958

Re: [R-sig-Geo] (no subject)

2013-04-18 Thread Endri Raco
*destPointRhumb*but still I need some loop function which can print coordinates of points by reading the vector of distances generated in R by some function *dist*. Thanks in advance On Thu, Apr 18, 2013 at 7:51 PM, Endri Raco endr...@gmail.com wrote: Hi Roman, This distances reflect the distance of points

Re: [R-sig-Geo] How to calculate the latlng of a point in a certain distance away from another?

2013-04-18 Thread Endri Raco
, simCoords, origin=c(0,0)) for (p in 1:length(exampleCoords)) { points(exampleCoords[p][[1]][1],exampleCoords[p][[1]][2], cex=0.4) } } Hope this helps, Ashton On 04/18/13, Endri Raco, wrote: Hi group, I am stacked in a problem like this. I have a bus stop with known

[R-sig-Geo] Distance converted in koordinates

2013-04-17 Thread Endri Raco
Hi group, I am stucked in a problem like this. I have distances from a bus station in km generated in R language like 0. 0.02725136 1.07634471 1.15963225 1.71421571 2.54945626 4.29135102 4.53532958 4.58512710 4.86466833 5.24266630 5.63505465 I need to convert this distances in

[R-sig-Geo] Fwd: RE : Re: R language GIS moving points

2013-04-15 Thread Endri Raco
...@gmail.com wrote: You should look at this site : http://spatialanalysis.co.uk Jean-Daniel Envoyé depuis un mobile Android Message d'origine De : Endri Raco endr...@gmail.com Date : À : Roman Luštrik roman.lust...@gmail.com,r-sig-geo@r-project.org Objet : Re: [R-sig

[R-sig-Geo] Multiple datasets with coordinates

2013-04-15 Thread Endri Raco
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

Re: [R-sig-Geo] Multiple datasets with coordinates

2013-04-15 Thread Endri Raco
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, Kevin - Mail original - De: Endri Raco endr...@gmail.com À: r-sig

Re: [R-sig-Geo] R language GIS moving points

2013-04-14 Thread Endri Raco
Thank you Roman, Using al1 = get_map(location = c(lon, lat), zoom = 6, maptype = 'roadmap') ggmap(al1) + geom_point(data = points,colour=red)+geom_point(data = points2,colour=green) I printed map and points but still thinking about some code to make the points move from one