Learn R Programming

visualFields (version 0.6.2)

progols: progression by linear ordinary least squares

Description

makes a linear regression with projection in the future by projyears years

Usage

progols( tdate, index, projyears = 0,
         xlab = "years from first visit", ylab = "md",
         txtfont = "sans", pointsize = 10, cex = 1,
         markfl = FALSE, prggrp = 3 )

Arguments

tdate

visit date

index

index measured at the corresponding age

xlab

label for x-axis. Default is age

ylab

label for y-axis. Default is md

projyears

Years for projection. Default is 0

txtfont

font of the text with visual-sensitivity values. Default is sans

pointsize

size of the text with visual-sensitivity values. Default is 10

cex

a numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. Default is 1

markfl

Mark first and last data points? Default is FALSE

prggrp

How many datapoints to mark. Default is 3

Examples

Run this code
# NOT RUN {
  vfi <- vfindex( vf91016right )
  progols( vfi$tdate, vfi$mvfi, ylab = "vfi" )
# }

Run the code above in your browser using DataLab