@@ -124,8 +124,12 @@ chart_1 <- ggplot(
124124 aes(x = total_subs, y = institution_label, fill = site_champ_label)
125125) +
126126 geom_col() +
127- theme(legend.position = "none", legend.title = element_blank()) +
128- labs(x = element_blank(), y = element_blank()) +
127+ theme(
128+ legend.position = "none",
129+ legend.title = element_blank(),
130+ axis.title.x = element_blank(),
131+ axis.title.y = element_blank()
132+ ) +
129133 scale_fill_manual(values = colors_user)
130134
131135ggplotly(chart_1, tooltip = c("x", "fill"))
@@ -167,8 +171,12 @@ chart_2 <- ggplot(
167171 aes(x = date, y = cum_submissions, color = institution_label)
168172) +
169173 geom_point() +
170- theme(legend.position = "none", legend.title = element_blank()) +
171- labs(x = element_blank(), y = element_blank()) +
174+ theme(
175+ legend.position = "none",
176+ legend.title = element_blank(),
177+ axis.title.x = element_blank(),
178+ axis.title.y = element_blank()
179+ ) +
172180 scale_color_manual(values = colors_institution)
173181
174182ggplotly(chart_2)
@@ -548,8 +556,12 @@ chart_10 <- ggplot(
548556 aes(fill = clinician_randomized, color = clinician_name, size = 5),
549557 position = "stack"
550558 ) +
551- theme(legend.position = "none", legend.title = element_blank()) +
552- labs(x = element_blank(), y = element_blank()) +
559+ theme(
560+ legend.position = "none",
561+ legend.title = element_blank(),
562+ axis.title.x = element_blank(),
563+ axis.title.y = element_blank()
564+ ) +
553565 geom_vline(
554566 xintercept = as.numeric(as.Date("03/26/2025", format = "%m/%d/%Y")),
555567 linetype = "dashed",
@@ -626,8 +638,12 @@ chart_11 <- ggplot(
626638 aes(fill = clinician_randomized, color = clinician_name, size = 5),
627639 position = "stack"
628640 ) +
629- theme(legend.position = "none", legend.title = element_blank()) +
630- labs(x = element_blank(), y = element_blank()) +
641+ theme(
642+ legend.position = "none",
643+ legend.title = element_blank(),
644+ axis.title.x = element_blank(),
645+ axis.title.y = element_blank()
646+ ) +
631647 scale_y_continuous(guide = guide_axis(minor.ticks = FALSE))
632648
633649#TODO: NO VLINE YET SINCE TOOL HAS NOT LAUNCHED
@@ -702,8 +718,12 @@ chart_12 <- ggplot(
702718 aes(fill = clinician_randomized, color = clinician_name, size = 5),
703719 position = position_dodge2(width = 10, preserve = "total")
704720 ) +
705- theme(legend.position = "none", legend.title = element_blank()) +
706- labs(x = element_blank(), y = element_blank()) +
721+ theme(
722+ legend.position = "none",
723+ legend.title = element_blank(),
724+ axis.title.x = element_blank(),
725+ axis.title.y = element_blank()
726+ ) +
707727 geom_vline(
708728 xintercept = as.numeric(as.Date("04/21/2025", format = "%m/%d/%Y")),
709729 linetype = "dashed",
@@ -781,8 +801,12 @@ chart_12 <- ggplot(
781801 aes(fill = clinician_randomized, color = clinician_name, size = 5),
782802 position = position_dodge2(width = 10, preserve = "total")
783803 ) +
784- theme(legend.position = "none", legend.title = element_blank()) +
785- labs(x = element_blank(), y = element_blank()) +
804+ theme(
805+ legend.position = "none",
806+ legend.title = element_blank(),
807+ axis.title.x = element_blank(),
808+ axis.title.y = element_blank()
809+ ) +
786810 geom_vline(
787811 xintercept = as.numeric(as.Date("03/18/2025", format = "%m/%d/%Y")),
788812 linetype = "dashed",
@@ -860,8 +884,12 @@ chart_12 <- ggplot(
860884 aes(fill = clinician_randomized, color = clinician_name, size = 5),
861885 position = position_dodge2(width = 10, preserve = "total")
862886 ) +
863- theme(legend.position = "none", legend.title = element_blank()) +
864- labs(x = element_blank(), y = element_blank()) +
887+ theme(
888+ legend.position = "none",
889+ legend.title = element_blank(),
890+ axis.title.x = element_blank(),
891+ axis.title.y = element_blank()
892+ ) +
865893 geom_vline(
866894 xintercept = as.numeric(as.Date("04/04/2025", format = "%m/%d/%Y")),
867895 linetype = "dashed",
@@ -939,8 +967,12 @@ chart_12 <- ggplot(
939967 aes(fill = clinician_randomized, color = clinician_name, size = 5),
940968 position = position_dodge2(width = 10, preserve = "total")
941969 ) +
942- theme(legend.position = "none", legend.title = element_blank()) +
943- labs(x = element_blank(), y = element_blank()) +
970+ theme(
971+ legend.position = "none",
972+ legend.title = element_blank(),
973+ axis.title.x = element_blank(),
974+ axis.title.y = element_blank()
975+ ) +
944976 geom_vline(
945977 xintercept = as.numeric(as.Date("03/26/2025", format = "%m/%d/%Y")),
946978 linetype = "dashed",
@@ -1018,8 +1050,12 @@ chart_12 <- ggplot(
10181050 aes(fill = clinician_randomized, color = clinician_name, size = 5),
10191051 position = position_dodge2(width = 10, preserve = "total")
10201052 ) +
1021- theme(legend.position = "none", legend.title = element_blank()) +
1022- labs(x = element_blank(), y = element_blank()) +
1053+ theme(
1054+ legend.position = "none",
1055+ legend.title = element_blank(),
1056+ axis.title.x = element_blank(),
1057+ axis.title.y = element_blank()
1058+ ) +
10231059 geom_vline(
10241060 xintercept = as.numeric(as.Date("03/13/2025", format = "%m/%d/%Y")),
10251061 linetype = "dashed",
@@ -1098,8 +1134,12 @@ chart_3 <- ggplot(
10981134 aes(y = gender_label, x = num)
10991135) +
11001136 geom_col(aes(fill = gender_label)) +
1101- theme(legend.position = "none", legend.title = element_blank()) +
1102- labs(x = element_blank(), y = element_blank()) +
1137+ theme(
1138+ legend.position = "none",
1139+ legend.title = element_blank(),
1140+ axis.title.x = element_blank(),
1141+ axis.title.y = element_blank()
1142+ ) +
11031143 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
11041144
11051145
@@ -1144,8 +1184,12 @@ chart_4 <- ggplot(
11441184 aes(y = rel_status_label, x = num)
11451185) +
11461186 geom_col(aes(fill = rel_status_label)) +
1147- theme(legend.position = "none", legend.title = element_blank()) +
1148- labs(x = element_blank(), y = element_blank()) +
1187+ theme(
1188+ legend.position = "none",
1189+ legend.title = element_blank(),
1190+ axis.title.x = element_blank(),
1191+ axis.title.y = element_blank()
1192+ ) +
11491193 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
11501194
11511195
@@ -1202,8 +1246,12 @@ chart_5 <- ggplot(
12021246 aes(y = race_label, x = num)
12031247) +
12041248 geom_col(aes(fill = race_label)) +
1205- theme(legend.position = "none", legend.title = element_blank()) +
1206- labs(x = element_blank(), y = element_blank()) +
1249+ theme(
1250+ legend.position = "none",
1251+ legend.title = element_blank(),
1252+ axis.title.x = element_blank(),
1253+ axis.title.y = element_blank()
1254+ ) +
12071255 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
12081256
12091257
@@ -1248,8 +1296,12 @@ chart_6 <- ggplot(
12481296 aes(y = hispanic_label, x = num)
12491297) +
12501298 geom_col(aes(fill = hispanic_label)) +
1251- theme(legend.position = "none", legend.title = element_blank()) +
1252- labs(x = element_blank(), y = element_blank()) +
1299+ theme(
1300+ legend.position = "none",
1301+ legend.title = element_blank(),
1302+ axis.title.x = element_blank(),
1303+ axis.title.y = element_blank()
1304+ ) +
12531305 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
12541306
12551307
@@ -1300,8 +1352,12 @@ chart_7 <- ggplot(
13001352 aes(x = num_visits, y = reason_label)
13011353) +
13021354 geom_col(aes(fill = reason_label)) +
1303- theme(legend.position = "none", legend.title = element_blank()) +
1304- labs(x = element_blank(), y = element_blank()) +
1355+ theme(
1356+ legend.position = "none",
1357+ legend.title = element_blank(),
1358+ axis.title.x = element_blank(),
1359+ axis.title.y = element_blank()
1360+ ) +
13051361 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
13061362
13071363ggplotly(chart_7, tooltip = c("x"))
@@ -1356,8 +1412,12 @@ chart_8 <- ggplot(
13561412 aes(x = num, y = cog_imp_label)
13571413) +
13581414 geom_col(aes(fill = cog_imp_label)) +
1359- theme(legend.position = "none", legend.title = element_blank()) +
1360- labs(x = element_blank(), y = element_blank()) +
1415+ theme(
1416+ legend.position = "none",
1417+ legend.title = element_blank(),
1418+ axis.title.x = element_blank(),
1419+ axis.title.y = element_blank()
1420+ ) +
13611421 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
13621422
13631423ggplotly(chart_8, tooltip = c("x"))
@@ -1415,8 +1475,12 @@ chart_9 <- ggplot(
14151475 aes(x = num, y = func_status_label)
14161476) +
14171477 geom_col(aes(fill = func_status_label)) +
1418- theme(legend.position = "none", legend.title = element_blank()) +
1419- labs(x = element_blank(), y = element_blank()) +
1478+ theme(
1479+ legend.position = "none",
1480+ legend.title = element_blank(),
1481+ axis.title.x = element_blank(),
1482+ axis.title.y = element_blank()
1483+ ) +
14201484 scale_fill_brewer(palette = "Dark2", na.value = "grey50")
14211485
14221486ggplotly(chart_9, tooltip = c("x"))
0 commit comments