lkp_hist_date | R Documentation |
Histogram Over Date Range
lkp_hist_date(
df,
x,
f1,
f2,
fill,
wt = NULL,
bw = "y",
what = "number",
show_numbers,
label_text,
accuracy_text = NULL,
position_text,
vjust_text = -0.25,
hjust_text = 0.5,
label_x,
label_y,
accuracy_x = NULL,
accuracy_y = NULL,
n_breaks_x = NULL,
n_breaks_y = NULL,
facet_type = "wrap",
scales = "fixed",
labeller = label_verbose,
nrow = NULL,
ncol = NULL,
...
)
df |
A data.frame containing the data to represent |
x |
Variable representing a date |
f1 |
First optional variable for facet display |
f2 |
Second optional variable for facet display |
fill |
A variable for which to show the breakdown in each histogram bar |
wt |
Variable to use as weight |
bw |
Which bandwidth should be use ? Default is |
what |
If equal to |
show_numbers |
Should numbers be printed on top of the bars ? Optional |
label_text |
Labeller for the printed numbers. Optional |
accuracy_text |
Accuracy for the printed numbers. Optional |
position_text |
Should the text position use the |
vjust_text |
Vertical adjustement for text |
hjust_text |
Horizontal adjustement for text |
label_x |
Labeller for the x axis. Optional |
label_y |
Labeller for the y axis. Optional |
accuracy_x |
Accuracy for the y axis. Optional |
accuracy_y |
Accuracy for the y axis. Optional |
n_breaks_x |
Desired number of breaks for the x axis. Optional |
n_breaks_y |
Desired number of breaks for the y axis. Optional |
facet_type |
Should |
scales |
Should scales be fixed ( |
labeller |
A function that takes one data frame of labels and
returns a list or data frame of character vectors. Each input
column corresponds to one factor. Thus there will be more than
one with |
nrow, ncol |
Number of rows and columns. |
... |
Additional parameters to be passed to |
A ggplot object representing an histogram with one or several facets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.