Description Usage Arguments Value References See Also Examples
amHist computes a histogram of the given data values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x |
|
... |
see |
col |
|
border |
|
freq |
|
plot |
|
labels |
|
xlab, ylab |
|
ylim |
|
control_hist |
(optional) named |
An object of class AmChart.
See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI
amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall
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 | amHist(x = rnorm(100))
# Other examples available which can be time consuming depending on your configuration.
x <- replicate(1000, {
if (round(runif(1))) {
rnorm(1)
} else {
rnorm(1, mean = 5)
}
})
# Without plot
amHist(x = x, plot = FALSE)
# With options
amHist(x = x, border = "blue")
amHist(x = x, col = "lightblue", control_hist = list(breaks = 100))
amHist(x = x, col = "grey")
amHist(x = x, col = "gray")
amHist(x = x, main = "Histogram", ylab = "y-axis", xlab = "x-axis", col = "red")
amHist(x = x, main = "Histogram", ylab = "y-axis", xlab = "x-axis", ylim = c(10, 15))
amHist(x = x, main = "Histogram", ylab = "y-axis", xlab = "x-axis")
# Options for computing the histogram
amHist(x = x, control_hist = list(breaks = "Scott"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.