Learn R Programming

ctsem (version 2.5.0)

ctPlotArray: Plots a three dimensional array

Description

1st margin sets line values, 2nd sets variables, 3rd quantiles.

Usage

ctPlotArray(yarray, x, grid = TRUE, colvec = "auto", lwdvec = "auto",
  ltyvec = "auto", typevec = "auto", plotcontrol = list(ylab =
  "Array values", xlab = "X values", xaxs = "i"), legend = TRUE,
  legendcontrol = list(x = "topright"), polygon = TRUE,
  polygonalpha = 0.1, polygoncontrol = list(border = NA, steps = 50))

Arguments

yarray

3 dimensional array to use for Y values

x

numeric vector specifying x axis

grid

Logical. Plot with a grid?

colvec

color vector of same length as 2nd margin.

lwdvec

lwd vector of same length as 2nd margin.

ltyvec

lty vector of same length as 2nd margin.

typevec

type vector of same length as 2nd margin.

plotcontrol

list of arguments to pass to plot.

legend

Logical. Draw a legend?

legendcontrol

list of arguments to pass to legend.

polygon

Logical. Draw the uncertainty polygon?

polygonalpha

Numeric, multiplier for alpha (transparency) of the uncertainty polygon.

polygoncontrol

list of arguments to pass to ctPoly

Value

Nothing. Generates plots.

Examples

Run this code
# NOT RUN {
y <- ctStanTIpredeffects(ctstantestfit,plot=FALSE)
x<-ctstantestfit$data$tipreds[order(ctstantestfit$data$tipreds[,1]),1]
ctPlotArray(y,x)
# }

Run the code above in your browser using DataLab