[R-sig-Geo] Plot one character on a spatial map

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Mon Oct 19 00:36:01 CEST 2015


On Sun, Oct 18, 2015 at 9:33 PM, Jim Burke <javajimburke at gmail.com> wrote:
> I would like to plot a cex(17) darkgreen triangle at a specific lat/long
> spatial map on an existing plot. Or a star at that location.
>
> How might I approach this?
>
> I saw an example (below) but so much like the internet not how to
> implement. Besides this is probably for non spatial graphs
> http://www.statmethods.net/advgraphs/parameters.html

 (you mean pch=17, not cex?)

 uk = raster::shapefile("uk.shp")
 plot(uk)
 points(0, 55, pch=17, col="darkgreen")

works for me. However it depends on what you call a "spatial graph".
You've not given us an example. If you've used `ggplot` instead of
base graphics like I have then `points` won't work...



More information about the R-sig-Geo mailing list