amHist | R Documentation |
amHist computes a histogram of the given data values.
amHist(x, ...) ## S3 method for class 'numeric' amHist( x, col = "#1e90ff", border = "#1e90ff", freq = TRUE, plot = TRUE, labels = FALSE, xlab, ylab, ylim, control_hist, ... )
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.