line: line plot function

View source: R/line.R

lineR Documentation

line plot function

Description

Creates a line plot of the data.

Usage

line(
  file,
  x_column,
  y_column,
  symbol,
  line_type,
  auto_fit = TRUE,
  primary_color,
  secondary_color
)

Arguments

file

A csv file with the source data

x_column

Name of the column from the file you want to plot on the x-axis

y_column

Name of the column from the file you want to plot on the y-axis

symbol

Number of the symbol you want for the plot

line_type

The type of line you want for the line plot

auto_fit

Put false to start from 0, True shows the best fit.

primary_color

First color for line plot

secondary_color

Second color for line plot

Details

This function creates a plot based on the format of the data

Value

A line plot

Author(s)

Emiel Creus

Examples

  ## Not run: 
     line("testdata.csv", 
"column_1", 
"column_2", 5, 2, TRUE, 
"#004D9A", 
"#002142")
  
## End(Not run)



yForecasting/businessplots documentation built on Jan. 8, 2025, 6:26 p.m.