Description Usage Arguments Details Author(s) See Also
This function draws and labels isolines computed by contourLines
, though the labelling is done very clumsily and with a specialized application in mind.
1 | DrawContourlines(x, label = FALSE, cex = 0.7, vfont = c("sans serif", "bold"), ...)
|
x |
a list of isolines as produced by |
label |
a logical value indicating whether to label the isolines. |
cex |
size of labels |
vfont |
a vector font specification for the labels as in |
... |
extra arguments to |
This routine is used by Tornadoplot
and Volcanoplot
to draw and label isolines that were computed via contourLines and afterwards transformed. The problem is that all the nice options that contour
has for labelling isolines are not avaiable independently, so this function uses the following crude procedure that kind of works for the intended applications:
isoline completely left of zerolabel the leftmost point;
isoline completely right of zerolabel the rightmost point;
isoline crosses zero horizontallylabel the topmost point.
Hopefully, one of these days someone will come up with a nice general-purpose function for doing all the nifty stuff that contour
offers.
A. Ploner
contour
, contourLines
, Tornadoplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.