vis_asc: Visualize asc files

Description Usage Arguments Value Author(s) See Also Examples

Description

plot mHM-typical ASC raster files

Usage

1
2
3
4
5
vis_asc(asc = file.choose(), proj = NA, pdf = FALSE, png = TRUE,
  overwrite = FALSE, outfile = asc$file, closedev = TRUE,
  pdfargs = NULL, add = FALSE, asp = 1, mar = c(0, 0, 0, 0),
  mgp = c(3, 0.7, 0), col = seqPal(100), bg = "grey", pch = 15,
  cex = 0.1, legend = TRUE, title = asc$name, legargs = NULL, ...)

Arguments

asc

List returned by read_asc or character string giving a filename (passed to read_asc). DEFAULT: file.choose()

proj

Projection passed to read_asc if asc is not a list. DEFAULT: NA

pdf, png

Save output to disc? See pdf_png. DEFAULT: PDF=FALSE, png=TRUE

overwrite

Logical: overwrite existing file via pdf_png? DEFAULT: FALSE (_n appended in filename)

outfile

Output filename without pdf/png extension. DEFAULT: asc$file

closedev

Logical: if pdf|png, close devica at end of function? DEFAULT: TRUE

pdfargs

List of arguments passed to pdf_png.

add

Logical: add to existing plot? DEFAULT: FALSE

asp

Plot aspect ratio, see plot.window. DEFAULT: 1

mar, mgp

Plot margins and margin placement, see par. Margins are increased if missing and asc$proj != NA. DEFAULT: c(0,0,0,0), c(3,0.7,0)

col

Color palette. DEFAULT: berryFunctions::seqPal(100)

bg

Graph background color. DEFAULT: "grey"

pch, cex

Point type + size for colPoints if asc$proj != NA. DEFAULT: 15, 0.1

legend

Logical: add colPointsLegend? DEFAULT: TRUE

title

Character: Legend title. DEFAULT: asc$name (obtained from filename)

legargs

List of arguments passed to colPointsLegend.

...

Arguments passed to graphics::image or berryFunctions::colPoints (if proj != NA).

Value

Invisible list with pdf, png, add, closedev

Author(s)

Berry Boessenkool, berry-b@gmx.de, Feb-March 2017

See Also

read_asc, vis_dem

Examples

1
# to be added

brry/mhmVis documentation built on May 13, 2019, 7:53 a.m.