Learn R Programming

geoelectrics (version 0.2.2)

plot,Profile,ANY-method: Plot Geoelectrics Data Points

Description

Plots the geoelectrics data points of a profile.

Usage

# S4 method for Profile,ANY
plot(x, dataType = "processed", withTopo = T,
  xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title,
  "with topography"), asp = 1, ...)

# S4 method for ProfileSet,ANY plot(x, dataType = "processed", withTopo = T, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), asp = 1, ...)

plotProcessedData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...)

plotProcessedDataWithTopo(x, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), ...)

plotRawData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...)

plotRawDataWithTopo(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "with topography"), height = x@processedData@height, spline = TRUE, ...)

Arguments

x

profile object.

dataType

specify whether 'processed' (default) or 'raw' data should be plotted

withTopo

TRUE if topography information is plotted

xlab

label for x-axes.

ylab

label for y-axes.

main

title to be plotted.

asp

the y/x aspect ratio (default: 1).

...

plot parameters (such as pch, cex, col, ...).

height

topo data frame of distances and height.

spline

if TRUE spline interpolation is conducted.

See Also

Profile-class, plot3d, levelplot

Examples

Run this code
data(sinkhole)

plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE)
plotProcessedData(sinkhole@profiles[[1]])

plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE)
plotProcessedDataWithTopo(sinkhole@profiles[[1]])

plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = FALSE)
plotRawData(sinkhole@profiles[[1]])

plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = TRUE)
plotRawDataWithTopo(sinkhole@profiles[[1]])

Run the code above in your browser using DataLab