@@ -119,14 +119,18 @@ shapley_effects = gsa(
119119```
120120
121121``` @example shapley
122- fig = Figure(resolution = (600, 400))
123- ax = barplot(fig[1, 1], collect(1:54), shapley_effects.shapley_effects, color = :green)
124- CairoMakie.ylims!(ax.axis, 0.0, 0.2)
125- ax.axis.xticks = (1:54, ["θ$i" for i in 1:54])
126- ax.axis.ylabel = "Shapley Indices"
127- ax.axis.xlabel = "Parameters"
128- ax.axis.xticklabelrotation = 1
129- display(fig)
122+ barplot(
123+ 1:54, shapley_effects.shapley_effects;
124+ color = :green,
125+ figure = (; size = (600, 400)),
126+ axis = (;
127+ xlabel = "parameters",
128+ xticklabelrotation = 1,
129+ xticks = (1:54, ["θ$i" for i in 1:54]),
130+ ylabel = "Shapley Indices",
131+ limits = (nothing, (0.0, 0.2)),
132+ ),
133+ )
130134```
131135
132136Now let's assume some correlation between the parameters. We will use a correlation of 0.09 between
@@ -147,12 +151,16 @@ shapley_effects = gsa(
147151```
148152
149153``` @example shapley
150- fig = Figure(resolution = (600, 400))
151- ax = barplot(fig[1, 1], collect(1:54), shapley_effects.shapley_effects, color = :green)
152- CairoMakie.ylims!(ax.axis, 0.0, 0.2)
153- ax.axis.xticks = (1:54, ["θ$i" for i in 1:54])
154- ax.axis.ylabel = "Shapley Indices"
155- ax.axis.xlabel = "Parameters"
156- ax.axis.xticklabelrotation = 1
157- display(fig)
154+ barplot(
155+ 1:54, shapley_effects.shapley_effects;
156+ color = :green,
157+ figure = (; size = (600, 400)),
158+ axis = (;
159+ xlabel = "parameters",
160+ xticklabelrotation = 1,
161+ xticks = (1:54, ["θ$i" for i in 1:54]),
162+ ylabel = "Shapley Indices",
163+ limits = (nothing, (0.0, 0.2)),
164+ ),
165+ )
158166```
0 commit comments