regline: Line plot to show trend

Description Usage Arguments Examples

View source: R/regline.R

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)

ybkamaleri/rreg documentation built on March 26, 2018, 11:02 a.m.