Main Content

Plot data or simulation results in trellis plot

plots each group in `trellisplot`

= sbiotrellis(`data`

,`groupCol`

,`xCol`

,`yCol`

)`data`

as defined by the group column
variable `groupCol`

into its own subplot. The data defined by
column `xCol`

is plotted against the data defined by column(s)
`yCol`

.

plots each group in `trellisplot`

= sbiotrellis(`data`

,`fcnHandle`

,`groupCol`

,`xCol`

,`yCol`

)`data`

as defined by the group column
variable `groupCol`

into its own subplot.
`sbiotrellis`

creates the subplot by calling the function
handle, `fcnHandle`

, with input arguments defined by the
`data`

columns `xCol`

and
`yCol`

. The `fcnHandle`

cannot be empty
and must be specified.

The `fcnHandle`

must have the signature
`fcnHandle(x,y)`

, where `x`

is a numeric
column vector, and `y`

is a matrix with the same number of rows as
`x`

.

For instance, if you want to create a trellis plot with a logarithmic
*y*-axis, use `@semilogy`

as the function
handle, where `semilogy`

is the function that plots
data with logarithmic scale for the *y*-axis.

plots each group in `trellisplot`

= sbiotrellis(`simData`

,`fcnHandle`

,`xCol`

,`yCol`

)`simData`

into its own subplot.
`sbiotrellis`

creates the subplot by calling the function
handle, `fcnHandle`

with input arguments defined by the columns
`xCol`

and `yCol`

. The
`fcnHandle`

can be empty (`''`

or
`[]`

). If empty, the default time plot is created using the
handle `@plot`

.

The `fcnHandle`

must have the signature
`fcnHandle(simDataI,xCol,yCol)`

, where
`simDataI`

is a single `SimData`

object, and
`xCol`

and `yCol`

are the corresponding input
arguments to `sbiotrellis`

.

**Tip**

Use the `plot`

method of a sbiotrellis object to overlay
a `SimData`

object or a `dataset`

on an
existing `sbiotrellis`

plot. For example,
`plot(trellisplot,...)`

adds a plot to the object
`trellisplot`

. The `SimData`

or
`dataset`

that is being plotted must have the same
number of elements or groups as the `trellisplot`

object.
The `plot`

method has the same input arguments as
`sbiotrellis`

.