plot.snowprofile: Plot hardness profile

View source: R/plot.snowprofile.R

plot.snowprofileR Documentation

Plot hardness profile

Description

Plot hardness profile

Usage

## S3 method for class 'snowprofile'
plot(
  x,
  TempProfile = TRUE,
  xlimTemp = NULL,
  Col = "auto",
  TopDown = "auto",
  axes = TRUE,
  xlab = "",
  emphasizeLayers = FALSE,
  emphasis = "95",
  failureLayers = FALSE,
  failureLayers.cex = 1,
  failureLayers.col = "red",
  nYTicks = 4,
  ymax = max(c(x$maxObservedDepth, x$hs), na.rm = TRUE),
  alignWithBottomUpPlot = FALSE,
  highlightUnobservedBasalLayers = TRUE,
  label.datetags = FALSE,
  ...
)

Arguments

x

snowprofile object

TempProfile

draw unscaled temperature profile (default = TRUE)? Temperature data needs to be included in the snowprofile object either under x$layers$temperature, or in a separate x$temperatureProfile data.frame providing a vertical grid independent from the snow layers.

xlimTemp

the x limits in degrees Celsius for the temperature profile (if left empty it scales to the range of temperature values)

Col

vector of colours corresponding to the grain types in the profile (defaults to a lookup table)

TopDown

Option to plot by depth instead of height with zero depth on top of plot (default = FALSE)

axes

Should axes be printed?

xlab

x-axis label, defaults to an empty string

emphasizeLayers

index OR character vector (grain types) of layers to be emphasized (i.e. all other layers become slightly transparent)

emphasis

2 digit quoted number between '01'-'99' to control the degree of emphasis; the higher the stronger

failureLayers

height vector of failure layers that will be indicated with an arrow

failureLayers.cex

factor to shrink or enlarge the arrow

failureLayers.col

color of arrow, can also be a vector of same length as failureLayers to color different arrows differently

nYTicks

number of tick marks at yaxis

ymax

the maximum ylim value

alignWithBottomUpPlot

useful when aligning the yaxis grids of bottom up profileSet plots and top down hardness plots.

highlightUnobservedBasalLayers

draw sine wave at lowest observed layer to highlight unobserved layers below

label.datetags

label the datetags of the snowprofile layers? (Won't produce a pretty plot, but give you some more information for analysis)

...

other parameters to barplot

See Also

plot.snowprofileSet

Examples


plot(SPpairs$A_manual)
plot(SPpairs$A_manual, Col = 'black')
plot(SPpairs$A_manual, emphasizeLayers = c(5, 11),
     failureLayers = SPpairs$A_manual$layers$height[5], failureLayers.cex = 1.5)
plot(SPpairs$A_manual, emphasizeLayers = 'SH')
plot(SPpairs$A_manual, TopDown = TRUE)
plot(SPpairs$A_modeled, TempProfile = TRUE, xlimTemp = c(-30,10))

# highlight unobserved basal layers:
plot(snowprofile(layers = snowprofileLayers(depth = c(40, 25, 0),
                                               hardness = c(2, 3, 1),
                                               gtype = c('FC', NA, 'PP'),
                                               hs = 70,
                                               maxObservedDepth = 50)), TopDown = TRUE, ymax = 80)


sarp.snowprofile documentation built on Aug. 6, 2022, 1:05 a.m.