Description Usage Arguments Details
compact_hist()
plots a histogram using the compact axis
notation from the compactr
package.
1 2 3 |
x |
A vector of values for which the histogram is desired. |
xlab |
A label for the x axis. Defaults to no label. |
ylab |
A label for the y axis. Defaults to "Counts" if |
n_breaks |
one of:
|
ht |
The height of the y axis. |
xlim |
The limits of the x axis. |
counts |
Logical; should the heights be counts. If |
bar_color |
The color of the bars. Defaults to |
log_scale |
Logical; should the x axis be plotted on the log scale?
Defaults to |
plot |
Logical. Should the histgram be plotted? If FALSE, the histogram is not plotted and the data for the histogram are returned. |
... |
Arguments passed to |
Plots a histogram using the compact axis notation from the compactr
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.