ggplot.niv | R Documentation |
ggplot method for class niv
.
## S3 method for class 'niv' ggplot(x, i.var = NULL, same.limits = FALSE, col = NULL, xlab = NULL, ylab = NULL, title = NULL, nrows = NULL, ncols = NULL)
x |
An object of class |
i.var |
A numeric vector of indices of the variables to plot. The variables should be indexed in the same order that they appear in the initial niv formula. The default is to plot all variables. |
same.limits |
Should limits for the y-axis be the same in all plots? |
col |
The fill colour of the bars. |
xlab |
A character string giving the title for the x axis (the length should be the same as the number of plots). |
ylab |
A character string of length 1 giving the title for the y axis. |
title |
The main title for the plot (the length should be the same as the number of plots). |
nrows |
Number of rows for plots. |
ncols |
Number of columns for plots. |
Leo Guelman leo.guelman@gmail.com
set.seed(1) df <- sim_uplift(n = 1000, p = 20, response = "binary") netInf <- niv(y ~ trt(T) + X1 + X2 + X9 + X10, data = df, B=10, parallel = FALSE, digitsB = 1) ggplot(netInf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.