hist.leem | R Documentation |
Class method leem for generic hist
## S3 method for class 'leem'
hist(
x,
freq = "a",
bg = TRUE,
main = NULL,
xlab = NULL,
ylab = NULL,
grids = grid(col = "white"),
bgcol = "gray",
bgborder = NA,
barcol = "yellow",
barborder = "gray",
...
)
x |
R object (list) of class leem. Use |
freq |
Character argument. Type of frequency with options: |
bg |
Logical argument. Default is |
main |
Insert the plot title. The default is |
xlab |
Insert the title of the x-axis graphic label. The default is |
ylab |
Insert the title of the y-axis graphic label. The default is |
grids |
Insert grids to plot. The default is |
bgcol |
Insert the background color. This argument is only valid when |
bgborder |
Insert the background border color. This argument is only valid when |
barcol |
Insert the barplot color. The default is |
barborder |
Numeric argument. Insert the barplot border color. This argument is only valid when |
... |
further arguments passed to or from other methods. |
# Example 1
library(leem)
rnorm(36, 100, 50) |> new_leem(variable = "continuous") |> tabfreq() |> hist()
# Example 2
library(leem)
school <- rep(c("high", "university", "basic"), 3:5)
sample(school, 30, TRUE) |>
new_leem() |>
tabfreq(ordered = c("basic", "high", "university"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.