plot.combinedFlexCoDE: Plots examples of estimated densities together with real...

Description Usage Arguments Value Examples

View source: R/basicFunctions.R

Description

Plots examples of estimated densities together with real response

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'combinedFlexCoDE'
plot(
  objectCombined,
  xTest,
  zTest,
  nPlots = min(nrow(xTest), 9),
  fontSize = 12,
  lineWidth = 1,
  predictionBandProb = FALSE,
  lineWidthPred = 0.6
)

Arguments

objectCombined

Object of the class "combinedFlexCoDE", typically fitted used combineFlexCoDE beforehand

xTest

Covariates x of the sample used to test the model (one observation per row)

zTest

Response z of the sample used to test the model (one observation per row)

nPlots

Number of desired densities to be ploted (which will be picked at random). Default is minimum between 8 and number of testing points

fontSize

Font size of axis labels and legend

lineWidth

Line width of the curves to be ploted

predictionBandProb

Either a number indicating the probability for the highest predictive density region desired or FALSE if bands are not desired. Default is FALSE

lineWidthPred

Line width of the prediction bands to be ploted

Value

Plot with estimated densities

Examples

1
# See \code{\link{combineFlexCoDE}}

rizbicki/FlexCoDE documentation built on Feb. 10, 2022, 3:14 p.m.