New answers tagged

0

I find the following solution generally works. First, create an empty dataframe with ID as field: df <- data.frame(ID=character(), stringsAsFactors=FALSE ) Then get the IDs of spatial polygon bc: for (i in bc@polygons ) { df <- rbind(df, data.frame(ID=i@ID, stringsAsFactors=FALSE)) } # and set rowname=ID row.names(df) <- df$ID Then use df as ...


0

I don't know why this happens, but here is one (not ideal) fix: Right-click your legend > Convert to Graphics. Right-click and select Ungroup repeatedly until your text labels are isolated. Drag the labels to the desired location. This is not an ideal solution because the legend is not really a legend anymore; it's just a capture of the legend at that ...


Top 50 recent answers are included