Displaying 1 result from an estimated 1 matches for "map_data_lat_long".
2013 Nov 29
0
Formatting output of plotKML
...ionInfo(). The test data is in the UK's
National Grid co-ordinate system so it gets converted before writing
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 localisa...