Plot a conditional scatter plot with marginals. xvar is the independent variable (input or model), and yvar is the dependent variable, and cvar is the condition code

ScatterHistC(frame, xvar, yvar, cvar, title, ..., annot_size = 3,
  colorPalette = "Dark2", adjust_x = 1, adjust_y = 1)

Arguments

frame

data frame to get values from

xvar

name of the independent (input or model) column in frame

yvar

name of the dependent (output or result to be modeled) column in frame

cvar

name of condition variable

title

title to place on plot

...

no unnamed argument, added to force named binding of later arguments.

annot_size

numeric scale annotation text (if present)

colorPalette

name of a Brewer palette (see http://colorbrewer2.org/ )

adjust_x

numeric adjust x density plot

adjust_y

numeric adjust y density plot

Examples

set.seed(34903490) frm = data.frame(x=rnorm(50),y=rnorm(50)) frm$cat <- frm$x+frm$y>0 WVPlots::ScatterHistC(frm, "x", "y", "cat", title="Example Conditional Distribution")