logHist | R Documentation |
Draw histogram of values on a logarithmic scale with nice axis labels
logHist(
x,
logargs = NULL,
main = xmain,
xlab = xname,
col = "tan",
add = FALSE,
las = 1,
ylim = NULL,
freq = TRUE,
quiet = FALSE,
...
)
x |
Vector of numerical values |
logargs |
A list of arguments passed to |
main |
Title of graph, internally from x. DEFAULT: internal name representation |
xlab |
X axis label. DEFAULT: internal: name of x |
col |
Color of histogram bars |
add |
Logical: add to existing plot? |
las |
Integer: label axis style. DEFAULT: 1 (numbers upright) |
ylim |
2 Numbers: y-axis range. DEFAULT: NULL |
freq |
Logical: counts instead of density? DEFAULT: TRUE |
quiet |
Logical: suppress warning about non-positive values? DEFAULT: FALSE |
... |
further arguments passed to |
none
Berry Boessenkool, berry-b@gmx.de, Feb 2016
logAxis
, hist
dat <- rbeta(1e4, 2, 18)*100
hist(dat, col="tan", breaks=50)
logHist(dat)
logHist(dat, freq=FALSE)
logHist(dat, breaks=50)
logHist(dat,xlim=c(0,2)) # xlim in powers of ten
logHist(c(-1,0,1,2,2,3,3,4,8,10,50)) # warning for negative values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.