scatter: Scatter plot function

View source: R/scatter.R

scatterR Documentation

Scatter plot function

Description

Creates a scatter plot of the data.

Usage

scatter(
  file,
  x_column,
  y_column,
  symbol,
  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 representing the symbol used for the scatter plot

auto_fit

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

primary_color

First color for bar plot

secondary_color

Second color for bar plot

Details

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

Value

A scatter plot

Author(s)

Emiel Creus

Examples

  ## Not run: 
      scatter("testdata.csv", 
"column_1", "column2", 
2, FALSE, 
"#004D9A", "#002142")
  
## End(Not run)



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