histogram: histogram plot function

View source: R/hist.R

histogramR Documentation

histogram plot function

Description

Creates a histogram of the data.

Usage

histogram(
  file,
  main_column,
  show_normal_distribution = FALSE,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_color
)

Arguments

file

A csv file with the source data

main_column

Name of the column from the file you want to plot in the histogram

show_normal_distribution

Put True if you want to show the normal distribution on top of the histogram

primary_color

First color for bar plot

secondary_color

Second color for bar plot

tertiary_color

Third color for bar plot

quaternary_color

Fourth color for bar plot

quinary_color

Fifth color for bar plot

senary_color

Sixth color for bar plo

Details

This function creates a histogram plot based on a column of a file with data.

Value

A histogram plot

Author(s)

Emiel Creus

Examples

  ## Not run: 
     histogram("testdata.csv",
"column_1", TRUE,
"#004D9A",
"#002142",
"#0069D2",
"#0180FF","#004D9A",
"#002142")
  
## End(Not run)


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