Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit f47bd5a

Browse files
committed
updates to figure legend and shapes
1 parent cab9d45 commit f47bd5a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

code/figure2.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ ca_ccf <- dplyr::bind_rows(ca_case_report_hosp_ccf_valid,
253253

254254
p1 <- ggplot(ca_data_split, aes(x=target_end_date,
255255
y=`smooth JHU report-date cases`/hospitalizations,
256-
color=target_end_date_period)) +
256+
color=target_end_date_period,
257+
shape = target_end_date_period)) +
257258
geom_point() +
258-
ggtitle("A: CA JHU report-date cases to hospitalization ratio") +
259+
ggtitle("A: CA JHU report-date cases to hosps ratio") +
259260
xlab(NULL) + ylab("# reported cases per hospitalization") +
260261
geom_vline(aes(xintercept = validation_test_split)) +
261262
theme(legend.position = "none")
@@ -265,7 +266,7 @@ p2 <- ggplot(ma_data_split, aes(x=target_end_date,
265266
color=target_end_date_period,
266267
shape = target_end_date_period)) +
267268
geom_point() +
268-
ggtitle("C: MA JHU report-date cases to hospitalization ratio") +
269+
ggtitle("C: MA JHU report-date cases to hosps ratio") +
269270
xlab(NULL) + ylab("# reported cases per hospitalization") +
270271
geom_vline(aes(xintercept = validation_test_split)) +
271272
theme(legend.position = "none")

figures/supp_cases_v_hosps.pdf

-9.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)