View source: R/demog_plot_sim.R
demog_plot_sim | R Documentation |
UNDER CONSTRUCTION.
demog_plot_sim(
demog_dataframe,
sims_to_include = "all",
demog_parameters = NA,
variability_display = "kernel density",
colorBy_column,
color_set = "default",
color_labels = NA,
legend_label_color = NA,
legend_position = "bottom",
graph_title = "Demographics",
alpha = 0.8,
ncol = NULL,
nrow = NULL,
facet_by_sex = TRUE,
facet_column_additional,
border_facets = TRUE,
graph_labels = TRUE,
save_graph = NA,
fig_height = 8,
fig_width = 6
)
demog_dataframe |
the output from running |
sims_to_include |
optionally specify which simulations to include. These
must be included in |
demog_parameters |
demographic parameters to include. We're starting with a limited set:
If you want only a subset
of those, list them in a character vector, e.g., |
variability_display |
How should the variability be shown? Options are "kernel density" (default, a type of smoothed histogram) or "boxplot". Any demographic parameters requested in the form of "X vs Y", e.g., "weight vs height", will always be shown as scatter plots. |
colorBy_column |
the column in |
color_set |
the set of colors to use. Options:
|
color_labels |
optionally specify a character vector for how you'd like
the labels for whatever you choose for |
legend_label_color |
optionally indicate on the legend something
explanatory about what the colors represent. For example, if
|
legend_position |
specify where you want the legend to be. Options are "left", "right", "bottom" (default), "top", or "none" if you don't want one at all. |
graph_title |
title to use on the plots |
alpha |
how transparent to make the points, with 0 being completely transparent and invisible so I don't know why you'd want that but, hey, you do you, to 1, which is fully opaque. |
ncol |
optionally specify the number of columns. If left as NULL, a reasonable guess will be used. |
nrow |
optionally specify the number of rows. If left as NULL, a reasonable guess will be used. |
facet_by_sex |
TRUE or FALSE (default) for whether to break up the graphs into facets based on the sex of the subjects |
facet_column_additional |
optionally specify an additional column to
facet the graphs by horizontally. If |
border_facets |
TRUE (default) or FALSE for whether to include a border around the facets if the graphs are broken up by the sex of the subjects |
graph_labels |
TRUE or FALSE for whether to include labels (A, B, C, etc.) for each of the small graphs. |
save_graph |
optionally save the output graph by supplying a file name in quotes here, e.g., "Demographics comparisons.png". Acceptable graphical file extensions are "eps", "ps", "jpeg", "jpg", "tiff", "png", "bmp", or "svg". Do not include any slashes, dollar signs, or periods in the file name. Leaving this as NA means the file will not be automatically saved to disk. |
fig_height |
figure height in inches; default is 8 |
fig_width |
figure width in inches; default is 6 |
a set of graphs. This does not yet save the graphs for you, so you'll need to run ggsave(...) to do that.
# none yet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.