plot_histogram | R Documentation |
A convenience function making a call to
hist
with changes to
the default options for parameters for pretty
plotting.
plot_histogram(
x,
breaks = "FD",
border = "grey",
col = "grey",
main = "",
plot = TRUE,
output = FALSE,
new = TRUE,
w = 5,
h = 5,
raw_points = TRUE,
...
)
x |
A vector of numeric values. |
breaks |
The argument controlling breakpoints
passed to the |
border |
The color of the border around the bars. |
col |
The color used to fill the bars. |
main |
The main title for the figure. |
plot |
Logical; if |
output |
Logical; if |
new |
Logical; if |
w |
The width (in inches) of the new plotting window. |
h |
The height (in inches) of the new plotting window. |
raw_points |
Logical; if |
... |
Additional arguments to pass to the
|
If output
is TRUE
, returns a
list with the information used to create the
histogram - see the help page for the
hist
function for more
details.
x <- rnorm( 100 )
plot_histogram( x, new = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.