[R-sig-Geo] Need to merge .RDS dataframe and India Shape file, and then plot yield map with tile legend

Ranjeet Kumar Jha r@njeetjh@||tkgp @end|ng |rom gm@||@com
Tue May 10 06:22:38 CEST 2022


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. Shape file has five features, and one of
them is "GDMID".

I feel there is something wrong with my code for merging and plotting by
ggplot.

I have attached herewith my code, and RDS data-frame.

It would be great if you could help me with merging issue and plotting the
map, showing yield value with legend in tile format.

Regards and Thanks,
Ranjeet

-- 
Ranjeet  Kumar Jha, M.Tech. (IIT Kharagpur), Ph.D. (USA)
https://www.linkedin.com/in/ranjeet-kumar-jha-ph-d-usa-73a5aa56
-----------------------------------------------------------
Email: *ranjeetjhaiitkgp using gmail.com <ranjeetjhaiitkgp using gmail.com>*


*"Simple Heart, Humble Attitude and Surrender to Supreme Being make our
lives beautiful!"*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20220510/b300a142/attachment.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dist_yield.RDS
Type: application/octet-stream
Size: 7523 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20220510/b300a142/attachment.obj>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Yield _map.R
Type: application/octet-stream
Size: 2124 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20220510/b300a142/attachment-0001.obj>


More information about the R-sig-Geo mailing list