Learn R Programming

DeducerSpatial (version 0.4)

text_plot: Plot text

Description

Plot text

Usage

text_plot(x, text, ...)

Arguments

x
a spatial data frame (points or polygon
text
the labels
...
additional parameters for text

Examples

Run this code
library(rgdal)
data(LA_places)
plot.new()
par(mar=c(.5,.5,2.25,.5), oma=c(1,1,1,1))
plot.window(c(-1.3160249151515616E7,-1.3155204307648793E7),c(3992993.9205893227,3996691.5618326175), xaxs = 'i', yaxs = 'i')
plot(openmap(c(33.760525217369974,-118.22052955627441),c(33.73290566922855,-118.17521095275879),14,'bing'),add=TRUE)
plot(x = LA_places,add = TRUE,pch = 16.0,col = '#e00700')
text_plot(LA_places,text = slot(LA_places,"data")[,'NAME'],adj = 0.0,col = '#fff7f9')
title('Long Beach Terminal')

Run the code above in your browser using DataLab