pplot {lazy.tools}R Documentation

Profile Plot

Description

Profile Plot

Usage

pplot(
  df,
  var = NULL,
  pty = 16,
  pcol = 1:8,
  pch = 2,
  lwd = 2,
  plty = 1:8,
  plwd = 2,
  axislabcol = "blue",
  title = "",
  vlabels = NULL,
  caxislabels = NULL,
  paxislabels = NULL,
  legend = 1,
  lpos = c(1.5, -0.2),
  lcex = 1,
  llwd = 1,
  lbty = "n",
  standard = 0,
  nobspc = 0,
  down = 1,
  across = 1,
  mar = c(8, 2, 1, 2),
  ...
)

Arguments

df

data frame

var

sas-like abbreviated list of variables to be used.

pty

A vector to specify point symbol:
Default 16 (closed circle), if you don't plot data points,
it should be 32. This is repeatedly used for data series.

pcol

A vector of color codes for plot data:
Default 1:8, which are repeatedly used.

pch

plot character

lwd

line width

plty

A vector of line types for plot data:
Default 1:6, which are repeatedly used.

plwd

A vector of line widths for plot data:
Default 1, which is repeatedly used.

axislabcol

not used.

title

plot title string.

vlabels

not used.

caxislabels

not used.

paxislabels

not used.

legend

= 1 to display legend.

lpos

upper left corner of the legend.

lcex

font size for the legend.

llwd

line width for the legend.

lbty

the type of box to be drawn around the legend.

standard

= 1 to standardize the variables
= 2 to scale the variables using min and max

nobspc

# of observations in one chart.

down

# of graphs in a column.

across

# of graphs in a row.

mar

margins for multiple graphs per page.

...

Miscellaneous arguments to be given for plot.

Value

None

Examples

data=data.frame(a=c(1,2,3,4),b=c(0,1,0,1),c=c(4,3,2,1))
pplot( data)
pplot( data, nobspc=2 )
pplot( data, nobspc=2, across=2 )


[Package lazy.tools version 0.1.4 ]