figUser {GCDkit}R Documentation

Plot editing: User defined parameter

Description

Enables the power users to modify the plotting parameters directly, one or several at the time.

Usage

    figUser(expression=NULL,...,redraw=TRUE)

Arguments

expression

character; single text string to be evaluated that contains parameters to be changed.

...

(alternative) list of named parameters to be changed.

redraw

logical; should be the modified Figaro template redrawn?

Details

The parameters can be specified at the function call, either as a single expression (text string) or as a list of named parameters in the form par.name = value (see examples). If neither is specified, the parameters are chosen by a GUI dialogue. If no parameters are entered from the GUI, they can be chosen from a list (still experimental!)

Several of parameters can be entered simultaneously.

NB that in the single text expression, quotation marks need to be preceded by backslashes as an escape character. In the expression, individual parameters are to be separated by semicolons.

Arguably the most useful parameters are (see par for further possibilities):

main main title
sub sub title
xlab label of x axis
ylab label of y axis
xlim limits for the x axis
ylim limits for the y axis
bg colour of background
pch plotting symbols
col colour of plotting symbols
cex relative size of plotting symbols
cex.axis magnification for axis annotation
cex.lab magnification for x and y labels
cex relative size of plotting symbols
log which of the axes is logarithmic? ("","x","y" or "xy")

Menu

Plot editing: User defined parameter

Warning

If requesting a logarithmic plot, do make sure that the axis ranges are all positive. See Examples or invoke menu items 'Plot editing: Scale x axis' and 'Plot editing: Scale y axis'.

Author(s)

Colin M. Farrow, colinfarrow537@gmail.com

and Vojtěch Janoušek, vojtech.janousek@geology.cz

See Also

figaro, par, plateUser

Examples

    data(blatna)
    accessVar("blatna")

    plotDiagram("DebonPQ",FALSE,TRUE)
    figUser(pch="+")

    figUser(col="darkblue")

    figUser(pch=1,col=2,cex=1.5)

    figUser(bg="khaki", cex=1.5) # for camouflage purposes

    # For power users
    figUser(main="My plot 1", las=3, col.main="blue", cex.main=2.5, cex.lab=1.8, cex.axis=0.75)

    # Alternative syntax
    figUser("main=\"My plot 2\"; las=2; cex.lab=1.2; cex.axis=1; col.main=\"darkred\"")

[Package GCDkit version 6.1 Index]