plotStatMap: plot the stat.tab file on a map

Description Usage Arguments Value Examples

Description

plot the result of on a map

Usage

1
plotStatMap(df, pop, z.param, margin = 0.1, zlab = z.param, ma = 1, xlim= NULL, ylim=NULL, main=paste(pop, "-population"), track = NULL, cex = 1,...)

Arguments

df

dataframe of the summary data, ie stat.tab

pop

Name should match the one written in the stats.tab created by the Summarize function

z.param

parameter in the dataframe for which to plot the heatmap

zlab

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

margin

margin of longitude and latitude around edges of current position.

ma

number of periods to average over z.param

xlim

limit of x axis

ylim

limit of y axis

main

Plot title

track

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

cex

character expansion factor

...

additional arguments to be passed to the plot function

Value

returns a map of seaflow statistics

Examples

1
2
3
4
5
6
7
8
## load the data
stat.tab <- system.file("extdata","seaflow_cruise","stats.tab", 
					package="flowPhyto")
stats <- read.delim(stat.tab)

## plot the cell concentrations of the picoplankton population
plotStatMap(df=stats ,pop='synecho', z.param='conc')
mtext(line=1, side=4, "cell concentration 10^6 cells / L")

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