View source: R/plot.snowprofile.R
plot.snowprofile | R Documentation |
Plot hardness profile
## 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,
...
)
x |
snowprofile object |
TempProfile |
draw unscaled temperature profile (default = TRUE)? Temperature data needs to be included in the
snowprofile object either under |
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 |
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 |
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 |
plot.snowprofileSet
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.