regline: Line plot to show trend

Description Usage Arguments Examples

Description

Create a line plot that can be used to elucidate if trends exit over time.

Usage

1
regline(data, x, y, grp, title, ylab, colp, digit, ...)

Arguments

data

Data set

x

x-axis

y

y-axis

grp

Group variable

title

Title for the plot

ylab

Label for y-axis

colp

Color palettes to use from ColorBrewer. To check other palettes run library(RColorBrewer); display.brewer.all()

digit

Number of digit to show

...

Additional arguments

Examples

1
2
regline(data = yrdata, x=year, y=pros, grp=var)
regline(yrdata, year, pros, var, colp="Set1", digit=1)

rreg documentation built on May 2, 2019, 9:58 a.m.

Related to regline in rreg...