lkp_pyramid | R Documentation |
Age Pyramid
lkp_pyramid(
df,
x,
y,
f1,
f2,
fill,
y_current,
n_breaks_y = NULL,
facet_type = "wrap",
scales = "free_x",
labeller = label_value,
nrow = NULL,
ncol = NULL,
...
)
df |
A data.frame containing the data to represent |
x |
The x axis variable for the histogram |
y |
Count Variable |
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 |
y_current |
Current year, required for secondary scale |
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 passed to the |
A ggplot object representing an age pyramid with one or several facets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.