dualaxes: multipleline plot function with multiple scales

View source: R/dualaxesline.R

dualaxesR Documentation

multipleline plot function with multiple scales

Description

Creates a plot of the data with multiple lines that have a different scale.

Usage

dualaxes(
  file,
  x_column,
  y_columns,
  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_columns

Name of the columns from the file you want to plot on the y-axes

legend_pos

the position of the legend

primary_color

First color for line plot

secondary_color

Second color for line plot

tertiary_color

Third color for line plot

quaternary_color

Fourth color for line plot

quinary_color

Fifth color for line plot

senary_color

Sixth color for line plot

Details

This function creates a plot with multiple lines and a different scale based on the format of the data

Value

A multiple line plot with multiple scales

Author(s)

Emiel Creus

Examples

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



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