Curves

Description

Draw points and a line between the points

Usage

1
2
3
4
5
6
curves.ade(x, y=NULL, group=NULL, data=NULL, vnames=NULL,
          main=NULL, xlab=NULL, ylab=NULL, legendon="topright",
          xlim=NULL, ylim=NULL, lwd=1, lwd2=1, cex=1, pch=16,
          lty=1, lty2=2, col=NULL, xticks=NULL, yticks=NULL,
          tcol=NULL, bgcol=NULL, alpha=NULL, fitline=0,
          wall=0, v=NULL, h=NULL, diag=F, points=T)

Arguments

x
  • a numeric vector of x coordinates for the points

  • a string with the name of the variable in the data.frame

  • a formula y~x or y~x+group

y
  • a numeric vector of y coordinates for the points

  • a string with the name of the variable in the data.frame

  • a formula y~x or y~x+group

group
  • a factor to group the points

  • a character string with the name of the group variable in the data.frame

data

data.frame if used strings for (x,y,group)

vnames

a vector of character strings with the names of groups in the legend

main

an overall title for the plot

xlab

a title for the x axis

ylab

a title for the y axis

legendon

a single keyword from:

  • "bottomright"

  • "bottom"

  • "bottomleft"

  • "left"

  • "topleft"

  • "top"

  • "topright"

  • "right"

  • "center"

This places the legend on the inside of the plot frame at the given location.

xlim

the x limits (x1, x2) of the plot

ylim

the y limits (y1, y2) of the plot

lwd

line width for the lines

lwd2

line width for the fited lines

cex

character (or symbol) expansion: a numerical value

pch

plotting "character", i.e., symbol to use. This can either be a single character or an integer code for one of a set of graphics symbols.

lty

the line types

lty2

the line type for fited lines

col

a vector of colors for the lines of each group

xticks

the number of ticks on the x axis or a vector of exact ticks

yticks

the number of ticks on the y axis or a vector of exact ticks

tcol

color of the text in whole plot

bgcol

the background color for plot dekoration

alpha

a parameter in [0, 1] for semi-transparency of lines and points

fitline

a number between 0 and 3 to fit:

  • 0. not fit

  • 1. a lm regression line

  • 2. a loess local regression line

  • 3. a pylinomial regression line

wall

a number between 0 and 6 for selection the dekoration style of the plot.

v

the x-value(s) for vertical line(s).

h

the y-value(s) for horizontal line(s).

diag

logical asking whether to plot a diagonal line

points

logical asking whether to draw points

Details

It is only a wrapper function for scatter.ade.

See Also

scatter.ade

Examples

1
2
x<-  -100:100
curves.ade(x, x^2, points=FALSE)