| xplot_binned | R Documentation |
Following the xpose design pattern, this is a generic template
(analogous to xplot_boxplot() or xplot_pairs()) for rendering
already-summarized/binned data as connected points and/or lines across
a (typically discrete, possibly ordered) x variable. It is not tied to
any particular binning or summarization logic – callers are expected
to shape their data (eg via opt's post_processing) and build a named
implementation on top of it (eg catdv_vs_occ()) rather than calling
it directly for everyday use.
xplot_binned(
xpdb,
mapping = NULL,
group = "variable",
type = "pl",
xscale = "discrete",
yscale = "continuous",
title = NULL,
subtitle = NULL,
caption = NULL,
tag = NULL,
plot_name = "binned",
gg_theme,
xp_theme,
opt,
quiet,
...
)
xpdb |
< |
mapping |
|
group |
Column name distinguishing multiple summarized series (eg
a |
type |
String setting the type of plot to be used: point |
xscale |
Defaults to |
yscale |
Defaults to |
title |
Plot title |
subtitle |
Plot subtitle |
caption |
Plot caption |
tag |
Plot tag |
plot_name |
Metadata name of plot |
gg_theme |
As in |
xp_theme |
As in |
opt |
Processing options for fetched data |
quiet |
Silence extra debugging output |
... |
Additional aesthetics, passed to the |
Unlike xpose::xplot_scatter()'s raw per-subject spaghetti plots,
xplot_binned() assumes the supplied data is already one row per
x/group combination (eg per occasion, per series) – it does no binning,
aggregation, or tidying of its own.
The desired plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.