From 11e8248eb6209c41ec62bc5c1268f2918b1f848a Mon Sep 17 00:00:00 2001 From: PharmCat Date: Mon, 8 Feb 2021 22:33:23 +0300 Subject: [PATCH] fix docs --- docs/src/examples.md | 10 +++++----- docs/src/instanduse.md | 8 ++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/src/examples.md b/docs/src/examples.md index 85d80d60..b97d59fc 100644 --- a/docs/src/examples.md +++ b/docs/src/examples.md @@ -5,13 +5,13 @@ using Metida, StatsPlots, CSV, DataFrames, MixedModels; rds = CSV.File(joinpath(dirname(pathof(Metida)), "..", "test", "csv", "1fptime.csv"); types = [String, String, Float64, Float64]) |> DataFrame -@df rds plot(:time, :response, group = (:subject, :factor), colour = [:red :blue], legend = false) -savefig("plot1.svg"); nothing # hide +p = @df rds plot(:time, :response, group = (:subject, :factor), colour = [:red :blue], legend = false) +png(p, "plot1.png"); nothing # hide ``` Model: response ~ 1 + factor*time -![](plot1.svg) +![](plot1.png) Metida result: @@ -61,10 +61,10 @@ using Metida, StatsPlots, CSV, DataFrames, MixedModels; # hide rds = CSV.File(joinpath(dirname(pathof(Metida)), "..", "test", "csv", "1freparma.csv"); types = [String, String, Float64, Float64]) |> DataFrame @df rds plot(:time, :response, group = (:subject, :factor), colour = [:red :blue], legend = false) -savefig("plot2.svg"); nothing # hide +png("plot2.png"); nothing # hide ``` -![](plot2.svg) +![](plot2.png) ARMA: diff --git a/docs/src/instanduse.md b/docs/src/instanduse.md index df9fc30e..f9129b88 100644 --- a/docs/src/instanduse.md +++ b/docs/src/instanduse.md @@ -41,9 +41,7 @@ fit!(lmm) ### Model construction -```@docs -Metida.LMM -``` +[`Metida.LMM`](@ref) * `model` - example: `@formula(var ~ sequence + period + formulation)` @@ -55,9 +53,7 @@ Metida.LMM ### Fitting -```@docs -Metida.fit! -``` +[`Metida.fit!`](@ref) * `solver` - `:default` solving with Optim.jl, for `:nlopt` and `:cuda` MetidaNLopt.jl and MetidaCu.jl should be installed.