Default panel function for scatter_data_frame. Calls panel.xyplot
and optionally plots linear fit, confidence region, reference lines, and statistics.
Note that, although global options are supported, typically these are unreachable
since the calling function supplies appropriate values.
scatter_panel(
x,
y,
groups,
xref = metOption("xref_scatter_panel", scatter_panel_ref),
yref = metOption("yref_scatter_panel", scatter_panel_ref),
ref.col = metOption("ref.col_scatter_panel", "grey"),
ref.lty = metOption("ref.lty_scatter_panel", "solid"),
ref.lwd = metOption("ref.lwd_scatter_panel", 1),
ref.alpha = metOption("ref.alpha_scatter_panel", 1),
xref.col = metOption("xref.col_scatter_panel", NULL),
xref.lty = metOption("xref.lty_scatter_panel", NULL),
xref.lwd = metOption("xref_lwd_scatter_panel", NULL),
xref.alpha = metOption("xref_alpha_scatter_panel", NULL),
yref.col = metOption("yref_col_scatter_panel", NULL),
yref.lty = metOption("yref_lty_scatter_panel", NULL),
yref.lwd = metOption("yref_lwd_scatter_panel", NULL),
yref.alpha = metOption("yref_alpha_scatter_panel", NULL),
ysmooth = metOption("ysmooth_scatter_panel", FALSE),
xsmooth = metOption("xsmooth_scatter_panel", FALSE),
smooth.lty = metOption("smooth.lty_scatter_panel", "dashed"),
smooth.lwd = metOption("smooth.lwd_scatter_panel", 1),
smooth.alpha = metOption("smooth.alpha_scatter_panel", 1),
fit = metOption("fit_scatter_panel", NULL),
fit.lty = metOption("fit.lty_scatter_panel", "solid"),
fit.lwd = metOption("fit.lwd_scatter_panel", 1),
fit.alpha = metOption("fit.alpha_scatter_panel", 1),
conf = metOption("conf_scatter_panel", FALSE),
conf.alpha = metOption("conf.alpha_scatter_panel", 0.3),
loc = metOption("loc_scatter_panel", 0),
iso = metOption("iso_scatter_panel", FALSE),
global = metOption("global_scatter_panel", FALSE),
global.col = metOption("global.col_scatter_panel", "grey"),
global.fill = metOption("global.fill_scatter_panel", "grey"),
msg = metOption("msg_scatter_panel", "metastats"),
type,
verbose = metOption("verbose_scatter_panel", FALSE),
...
)
x values
y values
optional grouping item
reference line from x axis; can be function(x, y, ...)
reference line from y axis; can be function(y, x, ...)
default shared by xref.col
and yref.col
default shared by xref.lty
and yref.lty
default shared by xref.lwd
and yref.lwd
default shared by xref.alpha
and yref.alpha
x reference line color (recycled)
x reference line type (recycled)
x reference line size (recycled)
x reference line alpha (recycled)
y reference line color (recycled)
y reference line type (recycled)
y reference line size (recycled)
y reference line alpha (recycled)
supply loess smooth of y on x
supply loess smmoth of x on y
smooth line type
smooth line size
smooth alpha
draw a linear fit of y ~ x; defaults to as.logical(conf)
fit line type
fit line size
fit alpha
logical, or width for a confidence region around a linear fit; passed to region
; TRUE
defaults to 95 percent confidence interval; may not make sense if xlog is TRUE
alpha transparency for confidence region
where to print statistics on a panel; suppressed for grouped plots
logical: use isometric axes with line of unity (auto-selected if NA); can be a (partial) list of aesthetics (col, lty, lwd, alpha)
if TRUE, xsmooth, ysmooth, fit, and conf are applied to all data rather than groupwise
color for global aesthetics
fill color for global aesthetics
a function to print text on a panel: called with x values, y values, and ....
overridden by scatter_panel
generate messages describing process
passed to panel.superpose, panel.xyplot, panel.polygon, region, panel.text
metastats
scatter.data.frame
Other panel functions:
boxplot_panel()
,
categorical_panel()
,
corsplom_gg_correlation()
,
corsplom_gg_diagonal()
,
corsplom_gg_scatter()
,
corsplom_panel_correlation()
,
corsplom_panel_diagonal()
,
corsplom_panel_scatter()
,
dens_panel()
,
diag_label()
,
diag_pin()
,
iso_prepanel()
,
metaplot_key()
,
metaplot_ref()
,
panel.meta_densityplot()
,
panel_tile()
,
scatter_panel_ref()
Other scatter:
metaplot_key()
,
scatter.data.frame()
,
scatter_data_frame()
,
scatter()