Learn R Programming

webglobe (version 1.0.3)

wgpoints: Plot points

Description

Plots latitude-longitude points

Usage

wgpoints(lat, lon, label = NA, alt = 0, colour = "yellow", size = 10)

Arguments

lat

One or more latitude values

lon

One or more longitude values

label

Label to put next to point

alt

Altitude of the points, can be single value or vector

colour

Colour name of the points, can be single value or vector

size

Size of the points, can be single value or vector

Value

A webglobe command

Examples

Run this code
# NOT RUN {
library(webglobe)
wg <- webglobe(immediate=FALSE)
wg <- wg + wgpoints(c(45,20),c(-93,127),alt=3,colour=c("blue","red"))
wg <- wg + wgpoints(51.5074,-0.1278,label="London",alt=0,colour="blue")
wg
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab