rs_disp_geofit(gf, aux)
aux_out=rs_disp_geofit(gf,aux)
displays the goodness of fit and model comparison statistics for geometric models fit by rs_geofit
This will create a wirerame plot of goodness of fit (d, see output gfs of rs_geofit for each model,
and, optionally, for selected models and comparisons across models that are nested by model type and/or dimension.
Input arguments:
-
gf(cell 2-D array) –geometrical fit data, typically gfs{k}.gf, where gfs is the output of
rs_geofit, containing the model fits for the kth record of a pair ofdataset structures; gf{d_out,d_in} contains the statistics for transforming a dataset of d_in dimensions to one with d_out dimensions -
aux(struct) –auxiliary options, may be omitted, with fields
opts_dgeo(struct) – options for display, with fieldsif_nestbymodel_show(int) – 1 to show all nested models, -1 to show only maximally nested models, 0 to omit; default is 1 if shuffles are present and 0 if notif_nestbydim_show(int) – 1 to show nesting by dimension;, 0 to omit; default is 1 if shuffles are present and 0 if notif_nestbydim_in_show(int) – 1 to show nesting by dimension for input, 0 if not; default is if_nestbydim_showif_nestbydim_out_show(int) – 1 to show nesting by dimension for output, 0 if not; defaults is if_nestbydim_showmodels_show_select(char or cell array of char) – selects the models to be shown in the plot of selected models; a model will be shown if at least one of the strings in models_show_select{:} is present in the model type; e.g., {'_offset','affine'} will select any model whose name contains _offset or affine; default is [], which displays all models. Caution: {} is empty, [] is empty, '' is empty, but {''} and {[]} are not.if_nestbydim_showd(int) – 1 to show d-values for models nested by dimension, 0 to omit; default is 1if_nestbydim_showd_in(int) – 1 to show d-values for models nested by input dimension, 0 to omit; default is if_nestbydim_showdif_nestbydim_showd_out(int) – 1 to show d-values for models nested by output dimension, 0 to omit; default is if_nestbydim_showdif_diag(int) – 0 to plot goodness of fit for all pairs of input and output dimensions, 1 to only plot diagonal values for input dimension equal to ouptut dimension; default is 1 if only on-diagonal values are present, otherwise 0sig_level(float) – significance level for significance flags; default is 0.05if_showsig(int) – 1 to show significance flags based on original denominator, 2 for shuffled denomiator, 3 for both, 0 to omit; default is 3if_showquant(int) – 1 to show quantile of shuffles for nesting at significance level sig_level, 0 to omit; default is 0out_label(char) – label for first coordinate of gf{}, default is 'output dim'in_label(char) – label for second coordinate of gf{}, defaulti is 'input dim'dia_label(char) – label for both coordinates of gf{}, when diagonal is plotted, default is 'dim'colors_models(cell array of color specifiers) – sequence of colors to use for model wireframes, used in cyclic order; default is {'k','b','c','m','r',[1 0.5 0],[0.7 0.7 0],'g',[.5 .5 .5],[.5 0 0]}; elements can be any valid color specifiersig_symbols(cell array of char) – symbols to mark significant values, sig_symbols{1} for original denominator, sig_symbols{2} for shuffle denominator, default is {'+','x'}sig_symsize(int) – symbol size for significance markers, default is 14lw_model(int) – line width for model, default is 2lw_nest(int) – line width for nested model, default is 2lw_quant(int) – line width for quantiles of shuffles of nested models, default is 1view(int or float 1-D array) – 3-D view descriptor, 2 is 2-d view; can also be azimuth-elevation pair, standard 3-d view is [-37.5 30]; default is 3 unless if_diag=1, in which case default is [0 0], which shows the plot in a plane
Plot selection
Plot components
Labels and formatting
opts_check(struct) – options for consistency checking, with fieldif_warn(int) – 1 to show warnings when datasets are checked for consistency, 0 to suppress; default is 1
Output arguments:
-
aux_out(struct) –auxiliary outputs and parameter values used
warnings(char) – warnings generated in checking for consistency of plotting optionswarn_bad(int) – count of warnings that prevent further processingopts_check(struct) – aux.opts_check, with defaults filled inopts_dgeo(struct) – aux.opts_dgeo with defaults filled in, and also fieldsfig_handles(cell array) – handles to the figures createdfig_names(cell array) – names of the figures created; no special chars, suitable for use in a file namemodels_shown(cell array of char) – names of models shown
See also: rs_geofit, PSG_GEOMODELS_FIT, PSG_GEOMODELS_PLOT.
Source code in src/rs_disp_geofit.m
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | |