Ranjeet Kumar Jha
2022-May-09 17:01 UTC
[R] Need help with merging .RDS data frame yield value with district shapefile corresponding GDMID and plot the graph
Thanks for your reply. Though codes are in " yield. r" file. Ranjeet On Mon, 9 May 2022, 7:58 pm Bert Gunter, <bgunter.4567 at gmail.com> wrote:> 1. No code came through. Most attachments are filtered due to security > concerns. See the posting guide (linked below) for details. > > 2. Geo-type questions are better posted on r-sig-geo, > stat.ethz.ch/mailman/listinfo/r-sig-geo, rather than here. > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Mon, May 9, 2022 at 5:22 AM Ranjeet Kumar Jha < > ranjeetjhaiitkgp at gmail.com> wrote: > >> Hello Everyone, >> >> I am trying to plot an Indian district shapefile filled with modeled >> yield, >> corresponding to each GDMID. I needed to first merge the Yield data with >> respect to each GDMID from the .RDS file with the district shapefile of >> India. Each district is represented by a GDMID. After merging, the Indian >> district map filled with modeled yield values needs to be plotted similar >> to an example attached figure. >> >> I feel there is something wrong with my code for merging and plotting by >> ggplot. >> >> I have attached herewith my code, .RDS dataframe, shapefile and sample >> example fig. >> >> It would be great if you could help me with merging issue and plotting the >> map, showing yield value, and legend in tile format. >> >> Regards and Thanks, >> Ranjeet >> >> -- >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >[[alternative HTML version deleted]]
David Winsemius
2022-May-11 20:35 UTC
[R] Need help with merging .RDS data frame yield value with district shapefile corresponding GDMID and plot the graph
On 5/9/22 10:01, Ranjeet Kumar Jha wrote:> Thanks for your reply. Though codes are in > " yield. r" file.You need to pay better attention to what Bert said about your attachment. `.r` files are not allowed as an attachment type. You need to either provide a link to a publicly accessible location or include the code inline. -- David> > Ranjeet > > On Mon, 9 May 2022, 7:58 pm Bert Gunter, <bgunter.4567 at gmail.com> wrote: > >> 1. No code came through. Most attachments are filtered due to security >> concerns. See the posting guide (linked below) for details. >> >> 2. Geo-type questions are better posted on r-sig-geo, >> stat.ethz.ch/mailman/listinfo/r-sig-geo, rather than here. >> >> Bert Gunter >> >> "The trouble with having an open mind is that people keep coming along and >> sticking things into it." >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) >> >> >> On Mon, May 9, 2022 at 5:22 AM Ranjeet Kumar Jha < >> ranjeetjhaiitkgp at gmail.com> wrote: >> >>> Hello Everyone, >>> >>> I am trying to plot an Indian district shapefile filled with modeled >>> yield, >>> corresponding to each GDMID. I needed to first merge the Yield data with >>> respect to each GDMID from the .RDS file with the district shapefile of >>> India. Each district is represented by a GDMID. After merging, the Indian >>> district map filled with modeled yield values needs to be plotted similar >>> to an example attached figure. >>> >>> I feel there is something wrong with my code for merging and plotting by >>> ggplot. >>> >>> I have attached herewith my code, .RDS dataframe, shapefile and sample >>> example fig. >>> >>> It would be great if you could help me with merging issue and plotting the >>> map, showing yield value, and legend in tile format. >>> >>> Regards and Thanks, >>> Ranjeet >>> >>> -- >>> ______________________________________________ >>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide >>> R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.