it has to do with the combination of paginate
, limit
and facet
. Can you try running this code that I posted earlier
using Pumas
using PumasUtilities
using Dates
using CairoMakie
using AlgebraOfGraphics
using DataFramesMeta
df = CSV.read("Single_Ascending_Dose_Dataset2.csv", DataFrame, missingstrings = ["NA"])
df = @rsubset df :TIME >= 0
@rtransform! df route = "ev"
## map NCA data from CSV
ncapop = read_nca(df,
id = :ID, time = :NOMTIME, amt = :AMT, route = :route,
observations = :LIDV,
group = [:DOSE])
#plot means
avg_pk_plots = summary_observations_vs_time(ncapop,
color = :black, linewidth = 2, whiskerwidth = 8,
paginate = true,
limit = 1,
axis = (xlabel = "Time (hours)",
ylabel = "Concentration (μg/mL)",
yscale=log10, ytickformat=x -> string.(round.(x; digits=1)),
yticks = [0.1, 1, 10],
ygridwidth = 3,
yminorgridcolor = :darkgrey,
yminorticksvisible = true,
yminorgridvisible = true,
yminorticks = IntervalsBetween(10),
xminorticksvisible = true,
xminorgridvisible = true,
xminorticks = IntervalsBetween(5),
limits = (nothing, nothing, nothing, 30),
spinewidth = 2),
#facet = ( combinelabels = true,),
figure = (resolution = (800,800),
fontsize = 22),)
pk_log_plots = observations_vs_time(ncapop, paginate = true, color = :black,
axis = (xlabel = "Time (hours)",
ylabel = "Concentration (μg/mL)",
yscale=log10, ytickformat=x -> string.(round.(x; digits=1)),
yticks = [0.1, 1, 10],
ygridwidth = 3,
yminorticksvisible = true,
yminorgridvisible = true,
yminorticks = IntervalsBetween(10),
xminorticksvisible = true,
xminorgridvisible = true,
xminorticks = IntervalsBetween(5),
limits = (nothing, nothing, nothing, 20),
spinewidth = 2),
columns = 4, rows = 4,
facet = ( combinelabels = true,))
report([pk_log_plots..., avg_pk_plots...],
title = "Summary and Individual Semi-Log Exploratory Plots",
output = "./practice/nibr/data/plots",
header = "Single Ascending Dose",
footer = "Confidential")