plotLegend | R Documentation |
Plots the legend for resistivity values.
plotLegend(.Object, legend.lab = expression(paste("Resistivity [", Omega, " m]")), minData = 0, maxData = 999999, breaks = NULL, legend.line = 2.2, nlevel = 18, lab.breaks = c(), horizontal = T, col = colors, trafo = log, backtrafo = exp, ...) ## S4 method for signature 'ProfileSet' plotLegend(.Object, legend.lab, minData = .Object@minData, maxData = .Object@maxData) ## S4 method for signature 'Profile' plotLegend(.Object, legend.lab, minData = .Object@processedData@minData, maxData = .Object@processedData@maxData)
.Object |
either a single Profile or a ProfileSet. |
legend.lab |
label of legend (default: expression(paste("Resistivity [", Omega, "]"))). |
minData |
minimum value. |
maxData |
maximum value. |
breaks |
Break points in sorted order to indicate the intervals for assigning the colors. Note that if there are nlevel colors there should be (nlevel+1) breakpoints. If breaks is not specified (nlevel+1) equally spaced breaks are created where the first and last bin have their midpoints at the minimum and maximum values in z or at zlim. |
legend.line |
distance in units of character height (as in mtext) of the legend label from the color bar. Make this larger if the label collides with the color axis labels. |
nlevel |
number of color levels. |
lab.breaks |
number of breaks. |
horizontal |
If false legend will be a vertical strip on the right side. If true (default) the legend strip will be along the bottom. |
col |
vector of colors. |
trafo |
transformation to be done on data (default: log). For linear scale: function(x) x. |
backtrafo |
back transformation to plot correct labels (default: exp). For linear scale: function(x) x. |
... |
image.plot arguments. |
Profile-class
, ProfileSet-class
,
plot3d
,
data(sinkhole) plotLegend(sinkhole) # for linear scale: plotLegend(sinkhole@profiles[[1]], trafo=function(x) x, backtrafo=function(x) x, minData=100, maxData=50000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.