Displaying 1 result from an estimated 1 matches for "col2kml".
2013 Nov 29
0
Formatting output of plotKML
...out as a SpacialPointsDataFrame.
According to the ?plotKML documentation there is a colour argument;
however attempting to call it with a vector of required colours fails:
> plotKML(map_data_lat_long,
+ file.name='test.kml',
+ points_names = map_data_lat_long at data$Label,
+ colour = col2kml("red") # or map_data_lat_long at data$colour -
with or without col2kml
+ )
Error in `[.data.frame`(obj at data, , as.character(colour)) :
undefined columns selected
Suspecting a localisation issue I tried color instead. This did not
error, however it just generated the default colour pal...