iqbin_plot_2d: Plotting 2-dimensional iterative quantile bins

Description Usage Arguments Value Examples

View source: R/IterativeQuantilePlotting.R

Description

used for binning the numeric values by empirical quantile

Usage

1
iqbin_plot_2d(iq_obj)

Arguments

iq_obj

iterative quantile object: either from iqbin or iqnn function with data and definition

Value

create ggplot2 object with iq bins displayed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
iq_obj <- iqbin(data=iris, bin_cols=c("Sepal.Length","Sepal.Width"),
                nbins=c(5,3), output="both",jit=rep(0.1,2))
iqbin_plot_2d(iq_obj)

iq_obj <- iqbin(data=iris, bin_cols=c("Sepal.Length","Sepal.Width"), 
                nbins=c(5,3), output="both")
iqbin_plot_2d(iq_obj)

iq_obj <- iqnn(data=iris, y="Species", mod_type="class", 
               bin_cols=c("Sepal.Length","Sepal.Width"), 
               nbins=c(5,3), jit=rep(0.001,2))
iqbin_plot_2d(iq_obj)

iq_obj <- iqnn(data=iris, y="Petal.Length", mod_type="reg", 
               bin_cols=c("Sepal.Length","Sepal.Width"), 
               nbins=c(5,3), jit=rep(0.001,2))
iqbin_plot_2d(iq_obj)

kmaurer/iqbin documentation built on Jan. 1, 2020, 6:48 p.m.