plotLatLongMap: plot file location on a map

Description Usage Arguments Examples

Description

plot the location of the file (longitude and latitude) on a map

Usage

1
plotLatLongMap(lat, long, track=NULL, margin=2, col='red', legend=NULL, pch=20, cex=1.5, lwd=1, lty=2, xlim=NULL, ylim=NULL, xlab="Longitude (deg W)",ylab="Latitude (deg N)",zlab=NA, ...)

Arguments

lat

vector of latitudes.

long

vecor of longitudes.

track

a dataframe of the cruise track (from the sds file) with longitude (long) and latitude (lat) named accordingly.

margin

margin of longitude and latitude around edges of current position.

col

vector of colors of the cruise track.

legend

vector of named colors for use in a heatmap color legend.

pch

point character

cex

character expansion

lwd

line width

lty

line type

zlab

the label for the values of the heatmap color gradient passed as 'col'

xlab

the x-axis label

ylab

the y-axis label

xlim

limit of x axis

ylim

limit of y axis

...

additional arguments to be passed to the plot function

Examples

1
2
3
4
stat.tab <- system.file("extdata","seaflow_cruise","stats.tab", 
				package="flowPhyto")
stats <- read.delim(stat.tab)
plotLatLongMap(stats$lat[10], stats$long[10], track=stats)

armbrustlab/flowPhyto documentation built on May 10, 2019, 1:40 p.m.