binary {GCDkit} | R Documentation |
These functions display data as a binary plot.
binary(x=NULL,y=NULL,log="",samples=rownames(WR), new=TRUE, ...) plotWithLimits(x.data, y.data, digits.x=NULL, digits.y=NULL,log = "",new = TRUE, xmin=.round.min.down(x.data,dec.places=digits.x,expand=TRUE), xmax=.round.max.up(x.data,dec.places=digits.x,expand=TRUE), ymin=.round.min.down(y.data,dec.places=digits.y,expand=TRUE), ymax=.round.max.up(y.data,dec.places=digits.y,expand=TRUE), xlab = "", ylab = "", fousy = "", IDlabels=getOption("gcd.ident"), fit = FALSE, main = "", pch = labels[names(x.data), "Symbol"], col = labels[names(x.data), "Colour"], cex=labels[names(x.data),"Size"],title=NULL)
x,y |
character; specification of the plotting variables (formulae OK). |
log |
a vector |
samples |
character or numeric vector; specification of the samples to be plotted. |
new |
logical; should be opened a new plotting window? |
... |
Further parameters to the function ' |
x.data |
a numerical vector with the x data. |
y.data |
a numerical vector with the y data. |
digits.x |
Precision to which should be rounded the x axis labels. |
digits.y |
Precision to which should be rounded the y axis labels. |
xmin, xmax |
limits of the x axis. |
ymin, ymax |
limits of the y axis. |
xlab, ylab |
labels for the x and y axes, respectively. |
fousy |
numeric vector: if specified, vertical error bars are plotted at each data point. |
IDlabels |
labels that are to be used to identify the individual data points |
fit |
logical, should be the data fitted by a least squares line? |
main |
main title for the plot. |
pch |
plotting symbols. |
col |
plotting colours. |
cex |
relative size of the plotting symbols. |
title |
title for the plotting window. |
The function 'plots.with.limits
' sets up the axes, labels them, plots the
data and, if desired, enables the user to identify the data points interactively.
'binary
' is the user interface to 'plotWithLimits
'.
The variables to be plotted are selected using the function
'selectColumnLabel
'. In the specification of the variables can
be used also arithmetic expressions, see calcCore
for the correct
syntax.
The samples can be selected based on combination of three searching
mechanisms (by sample name/label, range or a Boolean condition) - see
selectSubset
for details.
The functions are Figaro-compatible.
None.
Vojtech Janousek, vojtech.janousek@geology.cz
binary("K2O/Na2O","Rb") binary("Rb/Sr","Ba/Rb",log="xy",samples=1:10,col="red",pch="+",main="My plot") plotWithLimits(WR[,"SiO2"]/10,WR[,"Na2O"]+WR[,"K2O"],xlab="SiO2/10", ylab="alkalis") plotWithLimits(WR[,"Rb"],WR[,"Sr"],xlab="Rb",ylab="Sr",log="xy") plotWithLimits(WR[,"SiO2"],WR[,"Rb"],fousy=WR[,"Rb"]*0.05,xlab="SiO2", ylab="Rb",fit=TRUE)