pldnls2 - Plot an nls2 Data Frame


On to:
DESCRIPTION
USAGE
REQUIRED-ARGUMENTS
OPTIONAL-ARGUMENTS
CONSTRAINT
SEE-ALSO
EXAMPLE



DESCRIPTION:

Plot a data frame which has been, or will problably be, studied by function `nls2'.


USAGE:
pldnls2(data, response.name, X.names, 
        smooth=F, labels=NULL, title="", 
        figs=c(2, 2), ask.pause=T, ask.modify=F, ...)

REQUIRED ARGUMENTS:
data
the data frame containing the observations.
response.name
the name of the response vector in "data".
X.names
the names of the independent variables of "data" that should be plotted.

Sommaire


OPTIONAL ARGUMENTS:

smooth
a logic that should be TRUE if the points are to be joined after smoothing.
labels
a character vector that contains the points identifiers. By default, the "*" character.
title
the title of the plot.
figs
a vector or a matrix for controlling the layout on the display:
- when there are several curves or several independent variables, multiple screens appear according to "figs" (see the S command "split.screen");
- when only one plot is to be drawn on the display, it occupies the total space defined by "figs".
The "figs" argument is device dependent.
ask.pause
a logic that should be TRUE if a pause is requested between each plot; the execution is stopped until the user types a carriage return character (interactive mode).
ask.modify
a logic that should be TRUE if the user intends to modify the plots: the user is then asked to type any S commands of his choice before each plot disappears. He can therefore interactively add texts or legends, for example, activate another device or save the plot into a file.
Each S-command must be typed on a single line.
...
any other arguments accepted by S function "plot" except from: main, sub, xlab, ylab, type, adj.

Sommaire


CONSTRAINT:

A graphical device should have been previously activated.


SEE ALSO:




EXAMPLE:
Example 1:
   # only one plot on each screen, 
   # the left coordinate is 0, the right is 0.8
   # the bottom is 0.3 and the top is 1
   m_matrix(c(0,0.8, 0.3,1), nrow=1)
   pldnls2(data,"f","x", labels=attr(data,"row.names"),
           title="Data cortisol:pldnls2", figs=m)


Example 2: # The screen should be 3 plots high and 2 wide. # All plots have the same size. pldnls2(data,"f","x", figs=c(3,2))

Sommaire


- Mon Sep 30 1996 -