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
2
3
plotLatLongMap(lat, long, track=NULL, margin=0.1, col='red', 
		legend=NULL, pch=20, cex=1.5, lwd=1, lty = 2, zlab=NA, xlim=NULL, ylim=NULL,
		xlab = "Longitude (deg)", ylab = "Latitude (deg)", ...)

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'

xlim

limit of x axis

ylim

limit of y axis

xlab

x label

ylab

y label

...

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)

flowPhyto documentation built on Sept. 12, 2016, 6:18 a.m.