Echogram: Echogram

Description Usage Arguments Examples

Description

creates an echogram with a scale bar

Usage

1
2
3
4
5
6
7
8
Echogram(data, nf = 1, use.bottom.line = TRUE, bottom.line.offset = 1,
  threshold = -30, x = seq(1, length(data$pings), by = 1),
  y = data$pings[[2]]$rangeCorrected, ylim = rev(c(0, max(data$bottom.line +
  bottom.line.offset))), zstart = -70, zend = -30, xlim = range(x, finite
  = TRUE), zlim = c(zstart, zend), filename, height = 5, width = 7,
  ppi = 300, nlevels = 15, levels = pretty(zlim, nlevels),
  plot.title = "", key.title = "Sv", xlab = " Index", asp = NA,
  xaxs = "i", yaxs = "i", las = 1)

Arguments

data

object from ConvertPower or FindBottom

nf

nearfield distance, offset below surface in meters to be excluded from plot; default is 1

use.bottom.line

default is TRUE, when set to default only backscatter from the bottom line offset to the nf range are plotted.

bottom.line.offset

value to specify depth offset in meters below (positive values) or above (negative values) the bottom line that are to be plotted; default is 1 m.

threshold

data with backscatter (dB) stronger than this value are excluded. Use this to remove possible scatter from fish; default is -30 dB.

x

vector of values to be used for the x-axis. Must be the same length as number of pings; default is a vector 1:length(pings).

y

vector of depth intervals form sample data; default is data$pings[[2]]$rangeCorrected. THIS SHOULD NOT BE CHANGED.

ylim

range of y values; default is rev(c(0, max(data$bottom.line + bottom.line.offset))), THIS SHOUKD NOT BE CHANGED.

zstart

lowest value of z (backscatter); default is -70 dB

zend

highest value of z (backscatter); default is -30 dB

xlim

range of x values; default is range(x, finite=TRUE). THIS SHOULD NOT BE CHANGED.

zlim

range of z values base on zstart and zend, THIS SHOULD NOT BE CHANGED.

filename

file name in the form “filename.png”; must be specified so the file can be written

height

value in inches that specifies the height of the image; default is 5

width

value in inches that specifies the width of the image; default is 7

ppi

resolution of image; default is 300, make smaller for smaller image files

nlevels

number of levels for color scale; default is 15

levels

pretty separations for colors of z and scale bare. THIS SHOULD NOT BE CHANGED

plot.title

character vector in quotes to label plot; default is “”

key.title

character vector in quotes of title of color key; default is “Sv"

xlab

character vector in quotes of title of color key; default is “Index"

asp

aspect ratio y/x, default NA. See plot.window for more information.

xaxs

x axis interval calculation style. Default "i", see par for more information.

yaxs

x axis interval calculation style. Default "i", see par for more information.

las

axis label style. See par

Examples

1
Echogram.pixel(data, filename = "RPpixelfunction.png",plot.title = "Rock Pond", threshold = -45, use.bottom.line = TRUE)

leachth/ReadEKRaw_updated documentation built on May 23, 2019, 9:02 p.m.