regplot: Graphics of the regression

Description Usage Arguments Value Author(s) See Also Examples

View source: R/regplot.R

Description

The function generates the scatter plot with the regression equation.

Usage

1
2
regplot(data, xlab="Explanatory Variable", ylab="Response Variable", 
position=6, mean=TRUE, digits=4)

Arguments

data

data is a data.frame

the first column contain the explanatory variable

the others columns contain the responses variables

xlab

name of variable x

ylab

name of variable y

position

position of equation in the graph

top=1

bottomright=2

bottom=3

bottomleft=4

left=5

topleft=6 (default)

topright=7

right=8

center=9

mean

TRUE = scatter plots with averages (default)

FALSE = scatter plots with all data

digits

number of digits

Value

The function generates the scatter plot with the regression equation.

Author(s)

Emmanuel Arnhold <[email protected]>

See Also

lm, lme, ea1(easyanova package), pr2, pr2, dplot(ds package)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# data
data(data5)

d1=data5[,c(1,2)]
regplot(d1, position=8)

d2=data5[,c(1,3)]
regplot(d2, position=8)

d3=data5[,c(1,4)]
regplot(d3, position=8)

epr documentation built on Nov. 17, 2017, 6:47 a.m.