| cat.dv.vs.idv.sb | R Documentation |
Categorical observations vs. independent variable using stacked bars.
cat.dv.vs.idv.sb(
object,
dv = xvardef("dv", object),
idv = xvardef("idv", object),
by = NULL,
groups = dv,
force.by.factor = FALSE,
recur = F,
xlb = idv,
ylb = "Proportion",
subset = NULL,
vary.width = T,
level.to.plot = NULL,
refactor.levels = TRUE,
main = xpose.create.title.text(idv, dv, "Proportions of", object, subset = subset, ...),
stack = TRUE,
horizontal = FALSE,
strip = function(...) strip.default(..., strip.names = c(TRUE, TRUE)),
scales = list(),
inclZeroWRES = TRUE,
onlyfirst = FALSE,
samp = NULL,
aspect = object@Prefs@Graph.prefs$aspect,
auto.key = "Default",
mirror = FALSE,
mirror.aspect = "fill",
pass.plot.list = FALSE,
x.cex = NULL,
y.cex = NULL,
main.cex = NULL,
mirror.internal = list(strip.missing = missing(strip)),
...
)
object |
Xpose data object. |
dv |
The dependent variable (e.g. |
idv |
The independent variable (e.g. |
by |
Conditioning variable |
groups |
How we should group values in each conditional plot. |
force.by.factor |
Should we force the data to be treated as factors? |
recur |
Not used. |
xlb |
A string giving the label for the x-axis. |
ylb |
A string giving the label for the y-axis. |
subset |
Subset of data. |
vary.width |
Should we vary the width of the bars to match amount of information? |
level.to.plot |
Which levels of the DV to plot. |
refactor.levels |
Should we refactor the levels? |
main |
The title of the plot. |
stack |
Should we stack the bars? |
horizontal |
Should the bars be horizontal? |
strip |
Defining how the strips should appear in the conditioning plots. |
scales |
Scales argument to |
inclZeroWRES |
Include rows with WRES=0? |
onlyfirst |
Only include first data point for each individual? |
samp |
Sample to use in mirror plot (a number). |
aspect |
Aspect argument to |
auto.key |
Make a legend. |
mirror |
Mirror can be |
mirror.aspect |
Aspect for mirror. |
pass.plot.list |
Should the plot list be passed back to user? |
x.cex |
Size of x axis label. |
y.cex |
Size of Y axis label. |
main.cex |
Size of Title. |
mirror.internal |
Internal stuff. |
... |
Other arguments passed to function. |
Andrew Hooker
Other specific functions:
absval.cwres.vs.cov.bw(),
absval.cwres.vs.pred(),
absval.cwres.vs.pred.by.cov(),
absval.iwres.cwres.vs.ipred.pred(),
absval.iwres.vs.cov.bw(),
absval.iwres.vs.idv(),
absval.iwres.vs.ipred(),
absval.iwres.vs.ipred.by.cov(),
absval.iwres.vs.pred(),
absval.wres.vs.cov.bw(),
absval.wres.vs.idv(),
absval.wres.vs.pred(),
absval.wres.vs.pred.by.cov(),
absval_delta_vs_cov_model_comp,
addit.gof(),
autocorr.cwres(),
autocorr.iwres(),
autocorr.wres(),
basic.gof(),
basic.model.comp(),
cat.pc(),
cov.splom(),
cwres.dist.hist(),
cwres.dist.qq(),
cwres.vs.cov(),
cwres.vs.idv(),
cwres.vs.idv.bw(),
cwres.vs.pred(),
cwres.vs.pred.bw(),
cwres.wres.vs.idv(),
cwres.wres.vs.pred(),
dOFV.vs.cov(),
dOFV.vs.id(),
dOFV1.vs.dOFV2(),
data.checkout(),
dv.preds.vs.idv(),
dv.vs.idv(),
dv.vs.ipred(),
dv.vs.ipred.by.cov(),
dv.vs.ipred.by.idv(),
dv.vs.pred(),
dv.vs.pred.by.cov(),
dv.vs.pred.by.idv(),
dv.vs.pred.ipred(),
gof(),
ind.plots(),
ind.plots.cwres.hist(),
ind.plots.cwres.qq(),
ipred.vs.idv(),
iwres.dist.hist(),
iwres.dist.qq(),
iwres.vs.idv(),
kaplan.plot(),
par_cov_hist,
par_cov_qq,
parm.vs.cov(),
parm.vs.parm(),
pred.vs.idv(),
ranpar.vs.cov(),
runsum(),
wres.dist.hist(),
wres.dist.qq(),
wres.vs.idv(),
wres.vs.idv.bw(),
wres.vs.pred(),
wres.vs.pred.bw(),
xpose.VPC(),
xpose.VPC.both(),
xpose.VPC.categorical(),
xpose4-package
## Not run:
## read in table files
runno <- 45
xpdb <- xpose.data(runno)
## make some stacked bar plots
cat.dv.vs.idv.sb(xpdb,idv=NULL,stack=F)
cat.dv.vs.idv.sb(xpdb,idv=NULL,stack=F,by="DOSE")
cat.dv.vs.idv.sb(xpdb,idv="DOSE")
cat.dv.vs.idv.sb(xpdb,idv=NULL,stack=F,by="TIME")
cat.dv.vs.idv.sb(xpdb,idv="TIME")
cat.dv.vs.idv.sb(xpdb,idv="CAVH")
cat.dv.vs.idv.sb(xpdb,idv="TIME",by="DOSE",scales=list(x=list(rot=45)))
## make some mirror plots
cat.dv.vs.idv.sb(xpdb,idv="DOSE",mirror=1)
cat.dv.vs.idv.sb(xpdb,idv="CAVH",mirror=1,auto.key=F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.