regline {rreg} | R Documentation |
Line plot to show trend
Description
Create a line plot that can be used to elucidate if trends exit over time.
Usage
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
regline(data = yrdata, x=year, y=pros, grp=var)
regline(yrdata, year, pros, var, colp="Set1", digit=1)
[Package rreg version 0.2.1 Index]