wgbar: Plot bars from the surface

Description Usage Arguments Value Examples

View source: R/webglobe.R

Description

Plots bars rising upwards from points on the Earth's surface

Usage

1
wgbar(lat, lon, alt = 3e+06, colour = "blue", width = 3)

Arguments

lat

Latitude of the bars' bases, in degrees

lon

Latitude of the bars' bases, in degrees

alt

Altitude of the bars' tops, may be one or many values

colour

Colour of the bars, may be one or many values

width

Width of bar bars, may be one or many values

Value

A webglobe command

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(webglobe)
data(quakes)                                                      #Load up some data
wg <- webglobe(immediate=FALSE)                                   #Make a webglobe
wg <- wg + wgbar(quakes$lat, quakes$lon, alt=1.5e6*quakes$mag/10) #Plot quakes
wg <- wg + wgcamcenter(-33.35, 142.96, 8000)                      #Move camera
wg

## End(Not run)

webglobe documentation built on Sept. 16, 2020, 1:08 a.m.