Add contours {GCDkit} | R Documentation |
Superposes contour lines to a Figaro-compatible plot.
addContours(GUI = FALSE, bandwidth = "auto",...)
GUI |
logical; is the function called from GUI (or in a direct mode)? |
bandwidth |
vector of bandwidths for x and y directions provided to the function |
... |
additional parameters passed to the underlying function |
This is, in principle, a front end to the standard R function contour
. It will work on both the
stand-alone Figaro-compatible plot or a plate thereof.
The bandwidth
should be a positive number or 'auto', whereby the higher value corresponds to a smoother result.
The necessary calculations are done by the function kde2d
.
None.
Vojtěch Erban, erban@sopky.cz Vojtěch Janoušek, vojtech.janousek@geology.cz
'filled.contour
' 'kde2d
' 'par
' 'figaro
'
data(atacazo) accessVar("atacazo") # single plot plotDiagram("CoxPlut",FALSE,TRUE) addContours(col="darkblue",lty="dashed",bandwidth=10) figRedraw() addContours(col="darkgreen",lty="dotted",bandwidth=5) # multiple plot multiple("SiO2","Al2O3,MgO,CaO,K2O") plateCex(2) plateCexLab(1.5) addContours(col="darkgreen",lty="dashed")