Skip to content

Commit 677b066

Browse files
committed
update plots
1 parent d26d8de commit 677b066

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

analysis_scripts/create_main_plots.jl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ plot!(PCR_plt,(1+3):(length(kenya_pos_mv_av)+3),kenya_pos_mv_av,
7070
# plot!(PCR_plt,(n_1+1):(size(linelist_data.cases,1)-3),weekly_mv_av(sum(linelist_data.cases,dims = 2)[:])[(n_1+1):end],color = :red,lw = 3,lab = "Daily cases: Kenyan MoH (7 day mv-av)")
7171
smooth_cases_lookahead = weekly_mv_av(sum(linelist_data.cases[(n_1-2):end,:],dims = 2)[:])
7272
plot!(PCR_plt,(length(kenya_pos_mv_av)+4):(length(kenya_pos_mv_av)+3+length(smooth_cases_lookahead)),smooth_cases_lookahead,
73-
color = :red,lw = 3,
73+
color = :black,lw = 3,ls = :dash,
7474
lab = "Daily cases: 7 day mv-av (not used in fitting)")
7575

7676
plot!(PCR_plt,4:(n-3),kenya_pcr_forecast_mv_av,ribbon = 9*sqrt.(kenya_pcr_forecast_mv_av_var),
77-
color = :green, lw = 5, ls = :dot,lab = "Model fit and forecast (7 day mv-av)")
77+
color = :red, lw = 3,lab = "Model fit and forecast (7 day mv-av)",
78+
fillalpha = 0.4)
7879

7980
# savefig(PCR_plt,"plots/kenya_cases.png")
8081

@@ -141,8 +142,8 @@ plot!(deaths_plt,4:(n-3),cumsum(kenya_deaths_forecast_mv_av),
141142

142143

143144
## Kenya Serology plot
144-
plotlyjs()
145-
# gr()
145+
# plotlyjs()
146+
gr()
146147
xticktimes = [((Date(2020,2,1) + Month(k))- Date(2020,2,24)).value for k = 1:18 ]
147148
xticklabs = [monthname(k)[1:3]*"/20" for k = 3:12]
148149
xticklabs = vcat(xticklabs,[monthname(k)[1:3]*"/21" for k = 1:8])
@@ -228,14 +229,14 @@ scatter!(plt_sero,xs_mondays[seroidxs.*rnd3_idxs],kenya_weekly_sero_pos_rnd3[ser
228229
lab = "Weekly KNBTS: round 3 (not used in fitting)")
229230
plot!(plt_sero,kenya_serology_forecast_nw,lw = 2,color = :green,
230231
ribbon = 3*sqrt.(var_kenya_serology_forecast),
231-
lab = "Model fit: seroposivity (adjusted, no seroreversion)" )
232+
lab = "Model fit: seropositivity (test weighted, no seroreversion)" )
232233
plot!(plt_sero,test_weighted_kenya_serology_forecast,lw = 2,ls = :dash,color = :green,
233-
lab = "Model fit: seroposivity (adjusted, with seroreversion)" )
234+
lab = "Model fit: seropositivity (test weighted, with seroreversion)" )
234235

235236

236237
plot!(plt_sero,kenya_infections_forecast./sum(N_kenya),
237238
ribbon = 9*sqrt.(var_kenya_infections_forecast)./sum(N_kenya),
238-
lab = "Model fit: Overall Kenyan population exposure (unadjusted)",
239+
lab = "Model fit: Overall Kenyan population exposure",
239240
color = :red)
240241

241242
# savefig(plt_sero,"plots/kenya_sero.png")

plots/kenya_cases.png

-12.5 KB
Loading

plots/kenya_sero.png

-1.09 KB
Loading

sensitivity_analysis/model_selection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ include("../analysis_scripts/plotting_methods.jl")
9999

100100
ct_fitted = EM_steps[end][1]
101101
N = sum(N_kenya[:,"Nairobi"])
102-
plot(ct_fitted)
102+
ct_plt = plot_ct(ct_fitted)
103103

104104

105105
##Calculate predictions
-1.97 MB
Binary file not shown.

0 commit comments

Comments
 (0)