Description Usage Arguments Value Examples
Distribution Chart.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | Histogram(x, weights = NULL, vertical = FALSE,
density.color = "#008000", values.color = "#008000",
show.values = FALSE, histogram.cumulative = FALSE,
histogram.counts = FALSE, maximum.bins = NULL,
global.font.family = "Arial", global.font.color = rgb(44, 44, 44,
maxColorValue = 255), title = "",
title.font.family = global.font.family,
title.font.color = global.font.color, title.font.size = 16,
subtitle = "", subtitle.font.family = global.font.family,
subtitle.font.color = global.font.color, subtitle.font.size = 12,
footer = "", footer.font.family = global.font.family,
footer.font.color = global.font.color, footer.font.size = 8,
footer.wrap = TRUE, footer.wrap.nchar = 100,
background.fill.color = "transparent", background.fill.opacity = 1,
charting.area.fill.color = background.fill.color,
charting.area.fill.opacity = 0, margin.top = NULL,
margin.bottom = NULL, margin.left = NULL, margin.right = NULL,
grid.show = FALSE, values.title = "",
values.title.font.color = global.font.color,
values.title.font.family = global.font.family,
values.title.font.size = 12, values.line.width = 0,
values.line.color = rgb(0, 0, 0, maxColorValue = 255),
values.tick.mark.length = 5, values.bounds.minimum = NULL,
values.bounds.maximum = NULL, values.tick.distance = NULL,
values.zero.line.width = 0, values.zero.line.color = rgb(44, 44, 44,
maxColorValue = 255), values.grid.width = 1 * grid.show,
values.grid.color = rgb(225, 225, 225, maxColorValue = 255),
values.tick.show = TRUE, values.tick.suffix = "",
values.tick.prefix = "", values.tick.format = "",
values.hovertext.format = "", values.tick.angle = NULL,
values.tick.font.color = global.font.color,
values.tick.font.family = global.font.family,
values.tick.font.size = 10,
categories.tick.font.color = global.font.color,
categories.tick.font.family = global.font.family,
categories.tick.font.size = 10, categories.tick.label.wrap = TRUE,
categories.tick.label.wrap.nchar = 21,
hovertext.font.family = global.font.family, hovertext.font.size = 11,
modebar.show = FALSE)
|
x |
A |
weights |
An optional |
vertical |
Display the densities vertically. |
density.color |
Defaults to "Green" |
values.color |
Defaults to "Green" |
show.values |
Produces a rug plot of individual values. |
histogram.cumulative |
Plots the cumulative histogram, if |
histogram.counts |
Displays the counts in tooltips of a histogram, rather than the proportions. |
maximum.bins |
The maximum number of bins of the histogram. If |
global.font.family |
Character; font family for all occurrences of any font attribute for the chart unless specified individually. |
global.font.color |
Global font color as a named color in character format (e.g. "black") or an rgb value (e.g. #' rgb(0, 0, 0, maxColorValue = 255)). |
title |
Character; chart title. |
title.font.family |
Character; title font family. Can be "Arial Black", "Arial", "Comic Sans MS", "Courier New", "Georgia", "Impact", "Lucida Console", "Lucida Sans Unicode", "Marlett", "Symbol", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana", "Webdings" |
title.font.color |
Title font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
title.font.size |
Title font size; default = 10. |
subtitle |
Character |
subtitle.font.family |
Character; subtitle font family |
subtitle.font.color |
subtitle font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
subtitle.font.size |
Integer; subtitle font size |
footer |
Character |
footer.font.family |
Character; footer font family |
footer.font.color |
footer font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
footer.font.size |
Integer; footer font size |
footer.wrap |
Logical; whether the footer text should be wrapped. |
footer.wrap.nchar |
Number of characters (approximately) in each line of the footer when |
background.fill.color |
Background color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
background.fill.opacity |
Background opacity as an alpha value (0 to 1). |
charting.area.fill.color |
Charting area background color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
charting.area.fill.opacity |
Charting area background opacity as an alpha value (0 to 1). |
margin.top |
Margin between plot area and the top of the graphic in pixels |
margin.bottom |
Margin between plot area and the bottom of the graphic in pixels |
margin.left |
Margin between plot area and the left of the graphic in pixels |
margin.right |
Margin between plot area and the right of the graphic in pixels |
grid.show |
Logical; whether to show grid lines. |
values.title |
Character, y-axis title; defaults to chart input values; to turn off set to "FALSE". |
values.title.font.color |
y-axis title font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, max = 255)). |
values.title.font.family |
Character; y-axis title font family |
values.title.font.size |
y-axis title font size |
values.line.width |
y-axis line in pixels, 0 = no line |
values.line.color |
y-axis line color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
values.tick.mark.length |
Length of tick marks in pixels. |
values.bounds.minimum |
Minimum of range for plotting; NULL = no manual range set. Must be less than values.bounds.maximum |
values.bounds.maximum |
Maximum of range for plotting; NULL = no manual range set. Must be greater than values.bounds.minimum |
values.tick.distance |
The distance between the ticks. Requires that |
values.zero.line.width |
Width in pixels of zero line; 0 = no zero line shown |
values.zero.line.color |
Color of horizontal zero line as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
values.grid.width |
Width of y-grid lines in pixels; 0 = no line |
values.grid.color |
Color of y-grid lines as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
values.tick.show |
Whether to display the y-axis tick labels |
values.tick.suffix |
y-axis tick label suffix |
values.tick.prefix |
y-axis tick label prefix |
values.tick.format |
d3 formatting string applied to the tick labels. See https://github.com/mbostock/d3/wiki/Formatting#numbers |
values.hovertext.format |
d3 formatting string applied to the hover text. https://github.com/mbostock/d3/wiki/Formatting#numbers or |
values.tick.angle |
y-axis tick label angle in degrees. 90 = vertical; 0 = horizontal |
values.tick.font.color |
y-axis tick label font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
values.tick.font.family |
Character; y-axis tick label font family |
values.tick.font.size |
y-axis tick label font size |
categories.tick.font.color |
X-axis tick label font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
categories.tick.font.family |
Character; x-axis tick label font family |
categories.tick.font.size |
x-axis tick label font size |
categories.tick.label.wrap |
Logical; whether to wrap long labels on the x-axis. |
categories.tick.label.wrap.nchar |
Integer; number of characters in each line when |
hovertext.font.family |
Font family of hover text. |
hovertext.font.size |
Font size of hover text. |
modebar.show |
Logical; whether to show the zoom menu buttons or not. |
A plotly
chart.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.