Description Usage Arguments Examples
generic function to plot an object
1 2 3 4 5 6 7 8 9 10 11 | plotObject(object, ...)
## S4 method for signature 'PkModel'
plotObject(object, times, nCurves = 12,
nSamplesIntegration = 1000, seed = 134, sampleCurvesOnly = FALSE,
indSamplingPoints = FALSE)
## S4 method for signature 'PkData'
plotObject(object, nCurves = NULL,
nSamplesIntegration = 1000, sampleCurvesOnly = TRUE, seed = NULL,
indSamplingPoints = TRUE, addZeroIsZero = FALSE)
|
object |
a S4 class object |
... |
additional parameters |
times |
numeric vector at of times at which the model should be simulated for |
nCurves |
the number of sample curves defaults to 12 for |
nSamplesIntegration |
number of simulated curves to calculate averaged curve, defaults to 1000 |
seed |
specify the random seed to draw samples to get the same plot each time |
sampleCurvesOnly |
logical value if |
indSamplingPoints |
logical indicator if |
addZeroIsZero |
logical value, when |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# examples with limited number of samples, increase samples in practice
plotObject( object = getExamplePkModel() ,
times = seq( 0 , 10 , 1 ) , nSamplesIntegration = 25 )
plotObject( object = getExamplePkModel() ,
times = seq( 0 , 10 , 1 ) , nCurves = 3 , nSamplesIntegration = 5 )
plotObject( object = getExamplePkModel() ,
times = seq( 0 , 10 , 1 ) , nCurves = 3 , sampleCurvesOnly = TRUE )
## End(Not run)
## Not run:
pkData <- getPkData( getExamplePkModel() , 1:10 , 5 , 10 )
plotObject( object = pkData )
plotObject( object = pkData , nCurves = 2 )
plotObject( object = pkData , nCurves = 2 , addZeroIsZero = TRUE )
plotObject( object = pkData , nCurves = 3 ,
sampleCurvesOnly = FALSE , nSamplesIntegration = 25 )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.