diff --git a/pluto-deployment-environment/Manifest.toml b/pluto-deployment-environment/Manifest.toml index 7d90c96..0a6ac52 100644 --- a/pluto-deployment-environment/Manifest.toml +++ b/pluto-deployment-environment/Manifest.toml @@ -239,10 +239,10 @@ uuid = "a9b6321e-bd34-4604-b9c9-b65b8de01458" version = "0.1.0" [[deps.Automa]] -deps = ["PrecompileTools", "TranscodingStreams"] -git-tree-sha1 = "014bc22d6c400a7703c0f5dc1fdc302440cf88be" +deps = ["PrecompileTools", "SIMD", "TranscodingStreams"] +git-tree-sha1 = "a8f503e8e1a5f583fbef15a8440c8c7e32185df2" uuid = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" -version = "1.0.4" +version = "1.1.0" [[deps.AxisAlgorithms]] deps = ["LinearAlgebra", "Random", "SparseArrays", "WoodburyMatrices"] @@ -1637,9 +1637,9 @@ version = "0.9.36" [[deps.JumpProcesses]] deps = ["ArrayInterface", "DataStructures", "DiffEqBase", "DocStringExtensions", "FunctionWrappers", "Graphs", "LinearAlgebra", "Markdown", "PoissonRandom", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "SciMLBase", "Setfield", "StaticArrays", "SymbolicIndexingInterface", "UnPack"] -git-tree-sha1 = "6e0fb267f2c869df59b6bf9f8cb0f2794f2d85e9" +git-tree-sha1 = "c3a2cb6f968404ed3b1d5382bbdd7b7d83966598" uuid = "ccbc3e58-028d-4f4c-8cd5-9ae44345cda5" -version = "9.13.7" +version = "9.14.0" weakdeps = ["FastBroadcast"] [[deps.KLU]] @@ -3198,10 +3198,10 @@ uuid = "26aad666-b158-4e64-9d35-0e672562fa48" version = "0.1.1" [[deps.SciMLBase]] -deps = ["ADTypes", "Accessors", "ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "EnumX", "Expronicon", "FunctionWrappersWrappers", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "Markdown", "PrecompileTools", "Preferences", "Printf", "RecipesBase", "RecursiveArrayTools", "Reexport", "RuntimeGeneratedFunctions", "SciMLOperators", "SciMLStructures", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface", "Tables"] -git-tree-sha1 = "50ed64cd5ad79b0bef71fdb6a11d10c3448bfef0" +deps = ["ADTypes", "Accessors", "ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "EnumX", "Expronicon", "FunctionWrappersWrappers", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "Markdown", "PrecompileTools", "Preferences", "Printf", "RecipesBase", "RecursiveArrayTools", "Reexport", "RuntimeGeneratedFunctions", "SciMLOperators", "SciMLStructures", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface"] +git-tree-sha1 = "81f58f868dc2cf1b3fb464c2674b28161c9ed25b" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" -version = "2.56.1" +version = "2.56.2" [deps.SciMLBase.extensions] SciMLBaseChainRulesCoreExt = "ChainRulesCore" @@ -3230,9 +3230,9 @@ version = "0.1.0" [[deps.SciMLOperators]] deps = ["Accessors", "ArrayInterface", "DocStringExtensions", "LinearAlgebra", "MacroTools"] -git-tree-sha1 = "e39c5f217f9aca640c8e27ab21acf557a3967db5" +git-tree-sha1 = "ef388ca9e4921ec5614ce714f8aa59a5cd33d867" uuid = "c0aeaf25-5076-4817-a8d5-81caf7dfa961" -version = "0.3.10" +version = "0.3.11" weakdeps = ["SparseArrays", "StaticArraysCore"] [deps.SciMLOperators.extensions] @@ -3613,9 +3613,9 @@ version = "3.7.2" [[deps.Symbolics]] deps = ["ADTypes", "ArrayInterface", "Bijections", "CommonWorldInvalidations", "ConstructionBase", "DataStructures", "DiffRules", "Distributions", "DocStringExtensions", "DomainSets", "DynamicPolynomials", "IfElse", "LaTeXStrings", "Latexify", "Libdl", "LinearAlgebra", "LogExpFunctions", "MacroTools", "Markdown", "NaNMath", "PrecompileTools", "Primes", "RecipesBase", "Reexport", "RuntimeGeneratedFunctions", "SciMLBase", "Setfield", "SparseArrays", "SpecialFunctions", "StaticArraysCore", "SymbolicIndexingInterface", "SymbolicLimits", "SymbolicUtils", "TermInterface"] -git-tree-sha1 = "aa3218c29b81384531631b2e5354fdf034a13ec2" +git-tree-sha1 = "8d763bd8e2e815ae013e9d8aae7c2b427caa96a6" uuid = "0c5d862f-8b57-4792-8d23-62f2024744c7" -version = "6.14.1" +version = "6.15.0" [deps.Symbolics.extensions] SymbolicsForwardDiffExt = "ForwardDiff" diff --git a/src/analysis/plots_01_corr.jl b/src/analysis/plots_01_corr.jl index 6f28f26..2ff6cda 100644 --- a/src/analysis/plots_01_corr.jl +++ b/src/analysis/plots_01_corr.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.46 +# v0.19.47 #> [frontmatter] #> chapter = 1 @@ -23,13 +23,22 @@ begin using TidierFiles, TidierData, TidierPlots # ╔═╡ 50dcffe7-f013-4540-804f-a3badc413f62 -using CairoMakie +using WGLMakie # ╔═╡ 07f923d3-3995-4915-a7f3-c236e6a6d0ea md"# Plot Correlation" # ╔═╡ 6856872e-c148-4e7e-8835-92adf9a1186b -CairoMakie.Makie.inline!() +WGLMakie.activate!() + +# ╔═╡ d393be84-e5b3-4c33-a66d-f4ef3ff82a8d +function Base.show(io::IO, ::MIME"text/html", x::TidierPlots.GGPlotGrid) + show(io, MIME"text/html"(), + with_theme(x.plots[1].theme) do + draw_ggplot(x) + end + ) +end # ╔═╡ 8eecaeac-b0d9-4587-9a9f-61db52c31ff8 md"## Regression Plot" @@ -52,20 +61,11 @@ p3 = ggplot(ads, @aes(x = newspaper, y = sales)) + geom_point(color=:red) + geom_smooth(method=:lm, linewidth=3, alpha=0.5) -# ╔═╡ dc0e2788-5a4a-4290-8ea3-a0556ac1ec3a -p13 = (p1 + p2 + p3 + plot_layout(ncol=3, nrow=1, widths=[2, 2, 2], heights=[1])); - -# ╔═╡ 1f0a569a-b99f-4626-9be7-63fbfbd7f333 -p13.plots - -# ╔═╡ ccbb8c49-ba45-4e41-894d-cc93a6814a66 -p13.grid - -# ╔═╡ 2902c294-aeff-4351-a2f3-337320f9d781 -p13.grid - -# ╔═╡ d393be84-e5b3-4c33-a66d-f4ef3ff82a8d +# ╔═╡ 636af518-6bdb-4c6c-ac03-d0971dfaa479 +p13 = p1 + p2 + p3; +# ╔═╡ 661926a4-4810-4be8-af66-d12416e828f3 +p13 # ╔═╡ Cell order: # ╟─07f923d3-3995-4915-a7f3-c236e6a6d0ea @@ -73,13 +73,11 @@ p13.grid # ╠═a6999fdb-d20a-4a13-b7e9-eee118eb98fa # ╠═50dcffe7-f013-4540-804f-a3badc413f62 # ╠═6856872e-c148-4e7e-8835-92adf9a1186b +# ╠═d393be84-e5b3-4c33-a66d-f4ef3ff82a8d # ╟─8eecaeac-b0d9-4587-9a9f-61db52c31ff8 # ╠═902a1f74-8d10-43c7-a1eb-d090438f0a27 # ╠═52d98253-dd93-4af8-b6d3-d9d2d5b9b1e2 # ╠═efb16650-04b3-47ea-8f1f-3a2436751adc # ╠═3b604dd8-d398-4bab-91d1-72bd70a965dc -# ╠═dc0e2788-5a4a-4290-8ea3-a0556ac1ec3a -# ╠═1f0a569a-b99f-4626-9be7-63fbfbd7f333 -# ╠═ccbb8c49-ba45-4e41-894d-cc93a6814a66 -# ╠═2902c294-aeff-4351-a2f3-337320f9d781 -# ╠═d393be84-e5b3-4c33-a66d-f4ef3ff82a8d +# ╠═636af518-6bdb-4c6c-ac03-d0971dfaa479 +# ╠═661926a4-4810-4be8-af66-d12416e828f3 diff --git a/src/prob/prob_1_distributions.jl b/src/prob/prob_1_distributions.jl index a89b57b..7d2b6b8 100644 --- a/src/prob/prob_1_distributions.jl +++ b/src/prob/prob_1_distributions.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.46 +# v0.19.47 #> [frontmatter] #> chapter = 3 @@ -15,11 +15,7 @@ using InteractiveUtils # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). macro bind(def, element) quote - local iv = try - Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value - catch - b -> missing - end + local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end local el = $(esc(element)) global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el) el @@ -165,7 +161,7 @@ begin stem!(axd, Bernoulli(pb), - linewidth=3, + stemwidth=3, markersize=12, color=:white, stemcolor=:blue, @@ -198,7 +194,7 @@ begin stem!(axs, Binomial(n, p), - linewidth=3, + stemwidth=3, markersize=12, color=:white, stemcolor=:blue, @@ -228,7 +224,7 @@ begin stem!(axpo, Poisson(λ), - linewidth=3, + stemwidth=3, markersize=12, color=:white, stemcolor=:blue,