grid.plotarea {RGrace}R Documentation

Plot's frame.

Description

This function draws fully rigged (i.e. with tick marks, tick labels, axis label and - optionally - with grid) left,right,bottom and top axis on the current graphic device.

Usage

grid.plotarea(inward=FALSE,
grilled=FALSE,gp=gpar(lwd=2,fontsize=12,fontface=1),
at=c("","Inf","","Inf"),label=c("X Label","","Y Label", ""),
draw=TRUE, vp=NULL, title="")

Arguments

at Character string containing the code used to calculate tick marks position and tick marks' labels. If at is empty, tick marks are evenly distributed along axis at position with "pretty numbers" (see grid.pretty). Otherwise at are parsed and evaluated twice in environment with two local variables RANGE and TICK.LAB set. RANGE contains the current range of the axis. TICK.LAB is set either to "tick" or "label". In the former case, if at string is evaluated to numerical vector, then this values are used as a positions of tick marks; in the latter case the value may be numerical or character vector which gives tick marks' labels (tips of the day: at="Inf" draws an empty axis without ticks and labels; at="list(tick=0,label=\"Start point\")[[TICK.LAB]]" draws only one tick at point zero with label "Start point"; at="log10.ticks(RANGE,TICK.LAB)" makes automatic logariphmic axis with power of 10 labels).
label Axis title. Can be either character string or expression. If entered in GUI text box in former case the value must be quoted, in the latter case it mustn't be quoted but should be wrapped in expression call.
inward Direction of tick marks. If TRUE tick marks are drawn inward plotting area, otherwise - overwise.
grilled To draw or not to draw grid lines. Grid are always drawn with 1pt wide dashed gray lines and gp parameter does not have effect on them.
gp Graphic parameter of axis. Applies to all 4 plotarea's axis with their tick marks , tick labels and axis legends.
vp,draw Standard grob's parameters - viewport to draw onto and does this function actually draw the graphic object or not.
title Character string used for the plotarea identification. Something like a comment string stored with the grob.

Details

Elements of vector parameters label and at corresponds to bottom,top,left and right axis.

Value

Grob (GRaphic OBject, see grid.grob) of class "grid.plotarea".

Author(s)

M.Kondrin

See Also

gpar, viewport


[Package RGrace version 0.6-6 Index]