cat.dv.vs.idv.sb: Categorical observations vs. independent variable using...

Description Usage Arguments Author(s) See Also Examples

Description

Categorical observations vs. independent variable using stacked bars.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)), ...)

Arguments

object

Xpose data object.

dv

The dependent variable (e.g. "DV" or "CP".)

idv

The independent variable (e.g. "TIME".)

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. NULL if none.

ylb

A string giving the label for the y-axis. NULL if none.

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 xyplot.

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 xyplot.

auto.key

Make a legend.

mirror

Mirror can be FALSE, TRUE, 1 or 3.

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.

Author(s)

Andrew Hooker

See Also

Other specific functions: absval.cwres.vs.cov.bw, absval.cwres.vs.pred.by.cov, absval.cwres.vs.pred, absval.iwres.cwres.vs.ipred.pred, absval.iwres.vs.cov.bw, absval.iwres.vs.idv, absval.iwres.vs.ipred.by.cov, absval.iwres.vs.ipred, absval.iwres.vs.pred, absval.wres.vs.cov.bw, absval.wres.vs.idv, absval.wres.vs.pred.by.cov, absval.wres.vs.pred, 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.bw, cwres.vs.idv, cwres.vs.pred.bw, cwres.vs.pred, cwres_wres_vs_x, dOFV.vs.cov, dOFV.vs.id, dOFV1.vs.dOFV2, data.checkout, dv.preds.vs.idv, dv.vs.idv, dv.vs.ipred.by.cov, dv.vs.ipred.by.idv, dv.vs.ipred, dv.vs.pred.by.cov, dv.vs.pred.by.idv, dv.vs.pred.ipred, dv.vs.pred, gof, ind.plots.cwres.hist, ind.plots.cwres.qq, ind.plots, 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.bw, wres.vs.idv, wres.vs.pred.bw, wres.vs.pred, xpose.VPC.both, xpose.VPC.categorical, xpose.VPC, xpose4-package

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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)

UUPharmacometrics/xpose4 documentation built on April 3, 2018, 12:05 p.m.