regplot {epr}R Documentation

Graphics of the regression

Description

The function generates the scatter plot with the regression equation.

Usage


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 <emmanuelarnhold@yahoo.com.br>

See Also

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

Examples


# 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)



[Package epr version 3.0 Index]