Create a histogram.

histogram(
x,
bins = 30,
fill = "crimson",
xFontSize = 10,
yFontSize = 10,
xticks = NULL,
yticks = NULL,
xtitle = NULL,
xtitleFontSize = 16,
ytitle = NULL,
ytitleFontSize = 16,
title = NULL,
titleFontSize = 22,
stroke = "crimson",
strokeWidth = NULL,
font = "Verdana, Geneva, Tahoma, sans-serif",
opacity = 1,
axisCol = "black",
width = NULL,
height = NULL
)

## Arguments

x A vector of data. The number of bins to consider. Defaults to 30. The color of the bars. Defaults to 'crimson'. the font size of the x-axis labels. Defaults to 10. the font size of the y-axis labels. Defaults to 10. Optional. the number of x-axis ticks to consider. Optional. The number of y-axis ticks to consider. Optional. The title of the x-axis. The font size of the x-axis title. Defaults to 16. Optional. The title of the y-axis. The font size of the y-axis title. Defaults to 16. Optional. The title of the plot. The font size of the plot title. Defaults to 22. The stroke color of the bars. Defaults to 'crimson'. Optional. the stroke width of the bars. The font family to consider for the titles. Defaults to "Verdana, Geneva, Tahoma, sans-serif". The background color of the SVG. Defaults to "#CAD0D3" HEX color. The color opacity of the bars (from 0 to 1). Defaults to 1. the color of the x and y axis. It includes the ticks, the labels and titles. Defaults to 'black'. Optional. The width of the SVG output. Optional. The height of the SVG output.

A SVG histogram.

## Examples


histogram(
x = mtcars\$mpg,
bins = 20,
fill = "crimson",
stroke = "white",
strokeWidth = 1,
title = "Distribution of the hwy variable",
width = "20",
height = "10"
)