Re: [R-sig-Geo] R Help

2018-12-21 Thread Mirza Cengic
Dear Esu, you can probably solve these tasks using sf package, which uses bit different way of representing spatial objects compared to the sp object. Below you'll find an example for the North Carolina dataset. Keep in mind that calculating area and perimeter depends on your coordinate system (i.

Re: [R-sig-Geo] R Help

2018-12-21 Thread Andres Diaz Loaiza
Dear Esu, About your question there is huge literature already written. I recommend to read the sp package manual. An example for extract the coordinates you can find it here: https://gis.stackexchange.com/questions/43543/how-to-calculate-polygon-centroids-in-r-for-non-contiguous-shapes If yo

Re: [R-sig-Geo] R Help

2018-12-20 Thread Hugo Costa
Package rgeos is a good starting point. Esu Esu via R-sig-Geo escreveu no dia quinta, 20/12/2018 à(s) 21:58: > Dear All, > I am new to R-programming. I have question if anyone can help me with:Q: > how can I create functions in R to compute the area (A), centroid (Cx and > Cy) and perimeter (P)

[R-sig-Geo] R Help

2018-12-20 Thread Esu Esu via R-sig-Geo
Dear All, I am new to R-programming. I have question if anyone can help me with:Q: how can I create functions in R to compute the area (A), centroid (Cx and Cy) and perimeter (P) of a polygon list .  I want to write R functions to compute these quantities for individual polygons, as well asan ov

Re: [R-sig-Geo] [R] Help with simple Map of US states with predefined regions Version 2

2018-09-13 Thread Bill Poling
Thank you Jeff. Cannot seem to get this to work in the fashion I want it to appear no matter how many websites and packages I investigate. Letting it go for the moment. Always appreciate your advice Sir! WHP From: Jeff Newmiller Sent: Thursday, September 13, 2018 10:29 AM To: r-h...@r-project

[R-sig-Geo] R-help: How to draw the same legend (one legend) for the multiple spatial figures?

2017-08-04 Thread duan.scut...@gmail.com
Dear all, I have ploted several spatial figures, but every one have legend and some of them are different. But I want to plot only one legend for these figures? So could you help me how to make it? I have the following lines for each figure: # draw figure ## Open a new default device. #get(

Re: [R-sig-Geo] R-help - Shiny and Datatable

2017-04-24 Thread Kent Johnson
On Mon, Apr 24, 2017 at 6:00 AM, wrote: > > Message: 4 > Date: Sun, 23 Apr 2017 18:19:59 -0400 > From: Joe Larson > > Hello, > I am getting wrapped around the axial on a shiny project, being a new R > learner I am asking for some help If you want the full code, to let me > know. Yes, if yo

Re: [R-sig-Geo] R-help - Shiny and Datatable

2017-04-23 Thread chris english
Joe, If you look again at the CDC, USA 500 ,( https://chronicdata.cdc.gov/500-Cities/500-Cities-Local-Data-for-Better-Health/6vp6-wxuq ), the top 26 rows are USA crude prevalence then age adjusted prevalence by disease (for 2014), or the 13 (either crude prevalence, or age adjusted) that you are

[R-sig-Geo] R-help - Shiny and Datatable

2017-04-23 Thread Joe Larson
Hello, I am getting wrapped around the axial on a shiny project, being a new R learner I am asking for some help. I am trying to combine CDC data, Shiny, and leaflet together to produce a map that has the top 500 USA cities with adverse medical outcomes. The goal is to allow the user to select ei

Re: [R-sig-Geo] R Help

2016-01-08 Thread Roger Bivand
re. Would you be able to assist me, if i am able to send you the question on a word document along the data that is used. Kind Regards Krishan ________________ From: Sarah Goslee Sent: 07 January 2016 20:31 To: Mistry, Krishan Cc: r-sig-geo@r-project.org Subject: Re: [R

Re: [R-sig-Geo] R Help

2016-01-07 Thread chris english
o R and haven't done any programming before. Would you > be able to assist me, if i am able to send you the question on a word > document along the data that is used. > > > > Kind Regards > > Krishan > > > > ________________ > > Fro

Re: [R-sig-Geo] R Help

2016-01-07 Thread Sarah Goslee
ment > along the data that is used. > > Kind Regards > Krishan > > > From: Sarah Goslee > Sent: 07 January 2016 20:31 > To: Mistry, Krishan > Cc: r-sig-geo@r-project.org > Subject: Re: [R-sig-Geo] R Help > > As you will se

Re: [R-sig-Geo] R Help

2016-01-07 Thread Sarah Goslee
As you will see below, posting in HTML format made your question unreadable. However, this looks rather like homework, and if so then you should look for help from the resources associated with your course. If it isn't homework, you will get much more assistance if you provide a reproducible exam

[R-sig-Geo] R Help

2016-01-07 Thread Mistry, Krishan
Dear Sir/Madame, I am currently a Masters student at the University of Leicester in the UK studying MSc Geographical Information Science and am having a bit of difficulty with the programme R. I am a new user of the programme and don't have any previous experience in programming. Having looked

[R-sig-Geo] R help

2013-07-24 Thread Amy Henry
Dear R expert, I fitted my spatial data to a glm.nb model. I decided to detect and correct for spatial autocorrelation using ME{spdep}. I received this warning after I add the eigenvectors into the model. Can you help me understand what I did wrong? Also, should I infer from the example below that

Re: [R-sig-Geo] R help

2013-07-02 Thread vikram ranga
Hi Kevin, Thank you very much for your email and time. I appreciate it greatly, I worked with gDifference from rgeos, also suggested by Alex. It works fine but it gives you SpatialPolygons instead of SpatialPolygonsDataFrame. In addition to that the row.names are lost which add to complexity in ma