corrweightscat: Scatter plot of correlations against weights

Description Usage Arguments Details Value See Also

View source: R/coin_rew8r.R

Description

Plots correlations on the x axis and weights on the y axis. Allows a selected highlighted point and a line showing low correlation boundary. This function is intended for use inside rew8r().

Usage

1
2
3
4
5
6
7
8
corrweightscat(
  dat,
  facet = FALSE,
  acvar = NULL,
  linesw = FALSE,
  locorval = NULL,
  hicorval = NULL
)

Arguments

dat

Data frame with first col indicator codes, second is weights, third is correlations

facet

Logical: if TRUE creates subplots.

acvar

Active variable to highlight (one of the indicator codes)

linesw

Whether to plot a vertical line showing low correlation boundary

locorval

x value of low correlation line

hicorval

x value of high correlation line

Details

Since this plot is really only intended for use inside rew8r() no example is provided.

Value

A scatter plot generated using plotly, also outputs event data (the clicked indicator).

See Also


COINr documentation built on Nov. 30, 2021, 9:06 a.m.