barwithline: Bar plot with line

View source: R/barwithline.R

barwithlineR Documentation

Bar plot with line

Description

Creates a bar plot with line

Usage

barwithline(
  file,
  x_column,
  y_column,
  line_type,
  legend_pos,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_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

line_type

The type of line you want for the line plot

primary_color

First color for line plot

secondary_color

Second color for line plot

tertiary_color

Third color for scatter plot

quaternary_color

Fourth color for scatter plot

quinary_color

Fifth color for scatter plot

senary_color

Sixth color for scatter plot

Details

This function plots a bar plot with line based on the data

Value

A bar plot with line

Author(s)

Isolde Boussauw

Examples

  ## Not run: 
     barwithline("testdata.csv",
column_1,
c("column2", "column3", "column4"),
1, 1, "red","green",
"orange","yellow","
blue","black")
  
## End(Not run)



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