| bar | R Documentation | 
Creates a bar plot of the data.
bar(
  file,
  x_column,
  y_column,
  horizontal = TRUE,
  stacked = FALSE,
  primary_color,
  secondary_color,
  tertiary_color,
  quaternary_color,
  quinary_color,
  senary_color
)
| 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 | 
| horizontal | Put True if you want to plot a horizontal bar plot, False for vertical plot. | 
| stacked | Put True for a stacked plot, False for normal bar plot | 
| 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 plot | 
This function creates a bar plot based on two columns of a file with data.
A bar plot
Emiel Creus
  ## Not run: 
     bar("testdata.csv",
"column_1"
"column2",
TRUE, FALSE,
"#004D9A",
"#002142",
"#0069D2",
"#0180FF",
"#004D9A",
"#002142") )
  
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.