figAdd {GCDkit} | R Documentation |
These functions enable adding new components to Figaro-compatible plots.
figTicks(major=-0.5,minor=0.25,xmjr=NULL,xmin=NULL,ymjr=NULL,ymin=NULL) figGrid(lty="dotted", col="gray30") figLegend() figAddReservoirs(autoscale=FALSE,reservoirs=NULL,labs=NULL) figAddText() figAddArrow() figAddBox() figAddFit() figAddCurve(equation=NULL)
major |
length of the major tick marks |
minor |
length of the minor tick marks |
xmjr, ymjr |
intervals for the major tick marks |
xmin, ymin |
intervals for the minor tick marks |
lty |
grid line type |
col |
plotting colour |
autoscale |
logical; should be the scaling changed so that all the overplotted values are shown? |
reservoirs |
text; regular expression specifying reservoirs compositions of which are to be plotted |
labs |
text; optional abbreviated labels for the individual reservoirs |
equation |
text with equation expressed as a function of x; see curve |
'figTicks
' adds major and minor tick marks for the x and y axes. Their
length is specified as a fraction of the height of a line of text. Negative
numbers imply outward and positive inward pointing ticks. The user is prompted for
four numbers separated by commas, xmjr, xmin, ymjr, ymin. These specify the intervals
of major and minor ticks for x and y axes, respectively.
Not implemented to logarithmic plots and spiderplots yet.
'figGrid
' adds grid lines for x and/or y axes.
'figLegend
' adds legend(s) on specified location.
'figAddReservoirs
' overplots compositions of selected geochemical reservoirs
(from the file
'reservoirs.data
', see selectNorm
for the file
structure as well as relevant references) and/or ideal minerals
(from the file 'idealmins.data
'). The optional parameter reservoirs
enables use in batch mode (see Examples). Please note that this function is available
so far for binary plots and spiderplots only.
'figAddText
' adds text on specified location. The parameters are the
text style ('n
' = normal, 'b
' = bold, 'i
' = italic and
'bi
' = bold italic), colour and relative size.
'figAddArrow
' adds arrow on specified location. The parameters are
colour and line style ('solid
', 'dashed
', 'dotted
' and
'dotdash
').
'figAddBox
' adds box on specified location (click bottom left and then
top right corner).
'figAddFit
' adds either a single least-squares fit to all data, or
several fit lines, for each of the groups separately. The parameters are colour
and line style ('solid
', 'dashed
', 'dotted
' and
'dotdash
'). The equation of each fit line is plotted at the user-defined
location.
'figAddCurve
' adds a curve, specified as a function of variable 'x
'.
The parameters are colour and line style ('solid
', 'dashed
',
'dotted
' and 'dotdash
').
The colours can be specified both by their code (see table under menu
'Data handling|Show
available colours
') or R name (see Examples).
The additional two menu items, available for binary and ternary plots, allow adding contours or convex hulls outlining individual groups of data. See contourGroups and chullGroups.
These functions serve to adding some extra components/annotations immediately
before the graph is printed/exported. Note that all user-defined components
added via 'Plot editing: Add
' will be lost upon redrawing, zooming ....
Colin M. Farrow, colinfarrow537@gmail.com
and Vojtech Janousek, vojtech.janousek@geology.cz
'par' 'showColours' 'colours' 'figaro' 'selectNorm' 'contourGroups' 'chullGroups' 'curve'
binary("Zr/Nb","Ba/La") figTicks(major=-0.5, minor=0.25,10,1,10,1) reserv<-c("MORB|OIB .* McDonough","Upper .* 1995","Lower .* 1995") # Sun & McDonough mantle reservoirs, Taylor & McLennan 1995 Upper and Lower Crust reserv.names<-c("NMORB","EMORB","OIB","UCC","LCC") figAddReservoirs(TRUE,reserv,reserv.names)