Does anyone know how I can fix this problem? Thanks in advance
It seems there is no column named iso.x. Try running
colnames(map_data)
and confirm the column names.
This fixed the problem. Thank you so much.