amHist {rAmCharts} | R Documentation |
Plotting histogram
Description
amHist computes a histogram of the given data values.
Usage
amHist(x, ...)
## S3 method for class 'numeric'
amHist(
x,
col = "#1e90ff",
border = "#1e90ff",
freq = TRUE,
plot = TRUE,
labels = FALSE,
xlab,
ylab,
ylim,
control_hist,
...
)
Arguments
x |
|
... |
see |
col |
|
border |
|
freq |
|
plot |
|
labels |
|
xlab , ylab |
|
ylim |
|
control_hist |
(optional) named |
Value
An object of class AmChart.
References
See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI
See Also
amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall
Examples
amHist(x = rnorm(100))
## Not run:
# 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"))
## End(Not run)