powered by
Create a line plot that can be used to elucidate if trends exit over time.
regline(data, x, y, grp, title, ylab, colp, digit, ...)
Data set
x-axis
y-axis
Group variable
Title for the plot
Label for y-axis
Color palettes to use from ColorBrewer. To check other palettes run library(RColorBrewer); display.brewer.all()
Number of digit to show
Additional arguments
# NOT RUN { regline(data = yrdata, x=year, y=pros, grp=var) regline(yrdata, year, pros, var, colp="Set1", digit=1) # }
Run the code above in your browser using DataLab