Skip to Main Content Skip to Search
Product Documentation

sbiotrellis - Plot data or simulation results in trellis plot

Syntax

trellisplot = sbiotrellis(Dataset, GroupCol, XCol, YCol)
trellisplot = sbiotrellis(Dataset, GroupCol, XCol, YCol, ...)
trellisplot = sbiotrellis(Dataset, fcnHandle, GroupCol, XCol, YCol)
trellisplot = sbiotrellis(simDataObj, fcnHandle, XCol, YCol)

Arguments

trellisplotObject returned by sbiotrellis. Use trellisplot together with the plot method to overlay trellis plots. See Description for information about the plot method.
Dataset

A dataset array containing grouped data to plot.

    Tip   You create a dataset array from your data using the dataset constructor or the sbionmimport function.

GroupCol

String specifying a column in Dataset that contains groups.

XCol

String specifying a column in Dataset to plot on the x-axis.

YCol

String or cell array of strings specifying column(s) in Dataset to plot on the y-axis.

fcnHandle

Function handle. If '' (empty), default is @plot.

simDataObj

SimBiology data object.

Description

trellisplot = sbiotrellis(Dataset, GroupCol, XCol, YCol) plots each group in Dataset by the data column GroupCol into its own subplot. The data defined by column XCol is plotted against the data defined by column(s) YCol.

trellisplot = sbiotrellis(Dataset, GroupCol, XCol, YCol, ...) takes optional property/value pairs that are supported by the plot command. Refer to plot in the MATLAB Reference documentation for more information on available properties.

trellisplot = sbiotrellis(Dataset, fcnHandle, GroupCol, XCol, YCol) plots each group in Dataset as defined by the data column GroupCol into its own subplot. sbiotrellis creates the subplot by calling the function handle, fcnHandle, with input arguments defined by the Dataset columns XCol and YCol.

trellisplot = sbiotrellis(simDataObj, fcnHandle, XCol, YCol) plots each group in the SimData object (simdataObj) into its own subplot. sbiotrellis creates the subplot by calling the function handle, fcnHandle with input arguments defined by the columns XCol and YCol.

Use the plot method to overlay a SimData object or a dataset on an existing sbiotrellis plot. The command, plot(trellisplot, ...) adds a plot to the trellis plot defined by the sbiotrellis object, trellisplot. The SimData or dataset object that is being plotted must have the same number of elements/groups as the trellis plot. The plot method has the same input arguments as sbiotrellis. For an example, see Performing Population Fitting in the SimBiology documentation.

See Also

sbioplot | sbiosubplot

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS