adegpar {adegraphics}R Documentation

Handling ADEg graphical parameters

Description

adegpar can be used to set or query graphical parameters used in ADEg object display.

It is inspired by the par function of graphics package.

Usage

adegpar(...)

Arguments

...

If it is empty, the return value is a named list containing all the current settings.

If it is a string of characters, the corresponding sub-list of parameters is return as information.

If it is a list containing keys and values, the corresponding changes in current settings are made.

Details

The graphical parameters control apparency of the graphic. Calls can be made using either a list of list (e.g. plabels = list(col = "red")) or a list grouping both keys with "." (e.g. plabels.col = "red").

Parameters are re-used if needed in all ADEg object. If set globally, meaning using adegpar, all created objects afterwards will be affected.

Value

Several parameters are used to create complete plot and accessible through adegpar.

p1d:

parameters for one-dimension graphic, object of class inherited from "ADEg.S1" or "ADEg.C1"

parrows:

arrows' parameters. see panel.arrows for more information

paxes:

axis' parameters. Mostly inspired by xyplot function of lattice package

pbackground:

background's parameters

pellipses:

ellipses' drawing parameters

pgrid:

grid's drawing parameters

plabels:

labels' drawing parameters

plegend:

legend's drawing parameters (used for object of class inherited from T.value and S2.value)

plines:

lines' drawing parameters

pnb:

drawing parameters for neighbourhood graph

porigin:

drawing parameters for origin's lines. See panel.lines for more information

ppalette:

a function taking one integer in argument indicating the number of expecting colors (for example using colorRampPalette)

ppoints:

points' drawing paameters

ppolygons:

polygons' drawing parameters (used for example to draw convex hull for S2.class or Gaussian curves for C1.gauss objects). See lpolygon for more information.

pSp:

drawing parameters for spatial object

psub:

subtitle's drawing parameters

ptable:

for table graphic, object of class inherited from ADEg.T

Author(s)

Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray

See Also

ADEg par

Examples

oldparamadeg <- adegpar()
    
X <- data.frame(x = runif(50, -1, 2), y = runif(50, -1, 2))
s.label(X)
names(adegpar())
adegpar("paxes.draw", "psub.cex")
adegpar()$pback$col
adegpar("paxes.draw" = TRUE, "psu.ce" = 3, "pback.col" = "grey85")
s.label(X)

adegpar(oldparamadeg)

[Package adegraphics version 1.0-15 Index]