Skip to content
Prev 28928 / 29559 Next

Need to merge .RDS dataframe and India Shape file, and then plot yield map with tile legend

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