plot_bubbles | R Documentation |
Make a bubble plot from the given data
plot_bubbles(
d,
clines = age_bubble_cohorts,
val_col_nm = "Proportion",
tick_prop = 1,
vjust_x_labels = -1.5,
remove_yr_labels = NULL,
mean_age = NULL,
mean_age_line_color = "red",
mean_age_line_width = 1.5,
mean_age_line_type = "solid",
diag_line_color = age_diag_line_color,
diag_line_width = age_diag_line_width,
diag_line_type = age_diag_line_type,
yrs = NULL,
x_labs_mod = 5,
leg_pos = "none",
point_alpha = main_alpha,
point_fill = main_fill,
point_color = "black",
xlim = c(1966, year(Sys.Date())),
show_x_axis_labels = TRUE,
...
)
d |
a |
clines |
An optional vector of years to draw cohort lines through |
val_col_nm |
The name of the column in |
tick_prop |
A value that the length of the major tick marks are
multiplied by. This proportion must be set by trial and error. Make sure
to change |
vjust_x_labels |
Adjustment to move the x-axis tick labels and label up or down. Negative numbers move down |
remove_yr_labels |
A vector of years to remove the ,labels for in case they are overlapping |
mean_age |
A two-column tibble with column names |
mean_age_line_color |
The line color for the mean age line |
mean_age_line_width |
The line width for the mean age line |
mean_age_line_type |
The line type for the mean age line |
diag_line_color |
The line color for the cohort diagonal lines |
diag_line_width |
The line width for the cohort diagonal lines |
diag_line_type |
The line type for the cohort diagonal lines |
yrs |
A vector of 2, for the years to show on the plot |
x_labs_mod |
How many years between year labels on the x-axis |
leg_pos |
See the |
point_alpha |
Transparency of the bubble fill |
point_fill |
Color of the bubble fill |
point_color |
Color of the bubble outline |
xlim |
Limits for the x-axis |
show_x_axis_labels |
Logical. If |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.