www.gusucode.com > simbio 案例源码程序 matlab代码 > simbio/CreateATrellisPlotForGroupedDataExample.m

    %% Create a Trellis Plot for Grouped Data
% This example shows how to create a trellis plot for grouped data with a
% logarithmic y-axis.

% Copyright 2015 The MathWorks, Inc.


%%
% Load a sample dataset.
load pheno.mat ds
%%
% Plot a trellis plot using the dataset.
plot = sbiotrellis(ds,'ID','TIME','CONC');

%%
% Specify the function handle |@semilogy| to change the y-axis to log scale.
plot2 = sbiotrellis(ds,@semilogy,'ID','TIME','CONC');