@@ -130,7 +130,7 @@ context[["df_nhe_gdp_share"]] |>
130130 theme(
131131 plot.title =
132132 element_text(
133- size = 70 , hjust = .5,
133+ size = 80 , hjust = .5,
134134 family = "Source Sans 3", face = "bold",
135135 color = ff_colors$scales$steel["900"]
136136 ),
@@ -192,11 +192,11 @@ icons |>
192192#| out-width: 100%
193193#| out-height: 100%
194194#| fig-width: 24
195- #| fig-height: 12
195+ #| fig-height: 10
196196
197197context[["df_nhe_sources"]] |>
198198 ggplot(aes(value, fct_reorder(sub_category, value), fill = fill_color)) +
199- geom_blank(aes(value * 1.1 )) +
199+ geom_blank(aes(value * 1.2 )) +
200200 geom_col() +
201201 geom_text(
202202 aes(label = value_format),
@@ -210,7 +210,7 @@ context[["df_nhe_sources"]] |>
210210 scale_x_continuous(expand = c(.001, .001)) +
211211 coord_cartesian(clip = "off") +
212212 theme_minimal(
213- base_size = 35 ,
213+ base_size = 50 ,
214214 base_family = "Source Sans 3",
215215 ) +
216216 theme(
@@ -236,15 +236,15 @@ context[["df_nhe_sources"]] |>
236236#| title: "National Health Insurance Expenditures by Payer"
237237#| fig-height: 8
238238#| out.height: "100%"
239- #| fig-width: 6
239+ #| fig-width: 9
240240
241241context[["df_insurance"]] |>
242242 ggplot(aes(value, fct_reorder(sub_category, value), fill = fill_color)) +
243243 geom_blank(aes(value * 1.3)) +
244244 geom_col() +
245245 geom_text(
246246 aes(label = value_fmt),
247- hjust = -.2, size = 6 ,
247+ hjust = -.2, size = 8 ,
248248 family = "Source Sans 3",
249249 color = ff_colors$elements[["annotation"]]
250250 ) +
@@ -263,7 +263,7 @@ context[["df_insurance"]] |>
263263 element_text(
264264 family = "Source Sans 3 SemiBold",
265265 color = ff_colors$scales$steel[["900"]],
266- size = 20 , hjust = 0
266+ size = 25 , hjust = 0
267267 ),
268268 panel.spacing = unit(0, "lines"),
269269 panel.grid = element_blank()
@@ -272,14 +272,14 @@ context[["df_insurance"]] |>
272272
273273### Column
274274
275- #### Row {height="60 %"}
275+ #### Row {height="70 %"}
276276``` {r}
277277#| label: fed_spend_pictogram
278278#| title: "CMS Spending by Category"
279279#| out-width: 100%
280280#| out-height: 100%
281- #| fig-width: 24
282- #| fig-height: 12
281+ #| fig-width: 28
282+ #| fig-height: 14
283283
284284context[["df_spend"]] |>
285285 ggplot(aes(value, sub_category, fill = fill_color)) +
@@ -300,14 +300,14 @@ context[["df_spend"]] |>
300300 coord_cartesian(clip = "off") +
301301 labs(x = NULL, y = NULL) +
302302 theme_minimal(
303- base_size = 35 ,
303+ base_size = 50 ,
304304 base_family = "Source Sans 3",
305305 ) +
306306 theme(
307307 panel.grid.minor = element_blank(),
308308 panel.grid.major.y = element_blank(),
309309 axis.text.x = element_blank(),
310- axis.text.y = element_text(size = 45 ),
310+ axis.text.y = element_text(size = 60 ),
311311 strip.text =
312312 element_text(
313313 family = "Source Sans 3 SemiBold",
@@ -319,7 +319,7 @@ context[["df_spend"]] |>
319319```
320320
321321
322- #### Row {height="40 %"}
322+ #### Row {height="30 %"}
323323``` {r}
324324#| label: fte
325325#| title: "CMS Full-Time Equivalents (FTEs)"
@@ -643,12 +643,12 @@ Medicaid Expenditures
643643#| title: Original Medicare Utilization & Spending
644644#| out-width: 100%
645645#| out-height: 100%
646- #| fig-width: 16
646+ #| fig-width: 18
647647#| fig-height: 16
648648
649649utilization[["df_medicare_util"]] |>
650650 ggplot(aes(persons_served, payments, fill = category)) +
651- geom_point(aes(shape = category), color = "white", size = 20) +
651+ geom_point(aes(shape = category), color = "white", size = 20, alpha = .8 ) +
652652 geom_text_repel(
653653 aes(label = sub_category),
654654 point.padding = 10,
@@ -658,7 +658,7 @@ utilization[["df_medicare_util"]] |>
658658 min.segment.length = 0,
659659 family = "Source Sans 3",
660660 color = ff_colors$elements[["annotation"]],
661- size = 13
661+ size = 15
662662 ) +
663663 scale_fill_manual(
664664 values = c(
@@ -681,6 +681,7 @@ utilization[["df_medicare_util"]] |>
681681 theme(
682682 panel.spacing = unit(2, "lines"),
683683 legend.position = "top",
684+ legend.text = element_text(size = 40),
684685 plot.caption = element_text(size = 22, color = "#909090"),
685686 strip.text =
686687 element_text(
@@ -689,6 +690,7 @@ utilization[["df_medicare_util"]] |>
689690 size = 18
690691 ),
691692 axis.title = element_text(face = "bold"),
693+ axis.text = element_text(size = 45)
692694 )
693695```
694696
@@ -701,7 +703,7 @@ utilization[["df_medicare_util"]] |>
701703#| title: Part D Utilization
702704#| out-width: 100%
703705#| out-height: 100%
704- #| fig-width: 18
706+ #| fig-width: 22
705707#| fig-height: 8
706708
707709utilization[["df_part_d"]] |>
@@ -714,7 +716,7 @@ utilization[["df_part_d"]] |>
714716 aes(y = end_point), na.rm = TRUE,
715717 color = ff_colors$scales$cobolt[["700"]], size = 8
716718 ) +
717- geom_text(aes(label = point_value_lab, hjust = lab_offset), size = 16 , na.rm = TRUE) +
719+ geom_text(aes(label = point_value_lab, hjust = lab_offset), size = 20 , na.rm = TRUE) +
718720 facet_grid(sub_category ~ ., scales = "free_y", switch = "y") +
719721 labs(
720722 x = NULL,
@@ -729,17 +731,17 @@ utilization[["df_part_d"]] |>
729731 breaks = range(utilization[["df_part_d"]]$data_year) #NULL
730732 ) +
731733 scale_y_continuous(breaks = NULL) +
732- theme_minimal(base_family = "Source Sans 3", base_size = 35 ) +
734+ theme_minimal(base_family = "Source Sans 3", base_size = 50 ) +
733735 theme(
734736 strip.text.y.left =
735- element_text(angle = 0, hjust = 1, vjust = 0.5, color = "grey20", size = 40 ),
737+ element_text(angle = 0, hjust = 1, vjust = 0.5, face = "bold", color = "grey20", size = 50 ),
736738 strip.placement = "outside",
737739 # panel.spacing.y = unit(0, "lines"),
738740 panel.grid = element_blank(),
739741 panel.border = element_blank(),
740742 axis.text.y = element_blank(),
741743 axis.ticks = element_blank(),
742- axis.title.x = element_text(color = "grey40", hjust = 1),
744+ axis.title.x = element_text(color = "grey40", hjust = 1), size = 55,
743745 plot.margin = margin(12, 12, 12, 12),
744746 plot.title.position = "plot",
745747 plot.title = element_text(face = "bold")
@@ -753,7 +755,7 @@ utilization[["df_part_d"]] |>
753755#| title: Part D Expenditures
754756#| out-width: 100%
755757#| out-height: 100%
756- #| fig-width: 18
758+ #| fig-width: 22
757759#| fig-height: 8
758760
759761utilization[["df_part_d"]] |>
@@ -766,32 +768,32 @@ utilization[["df_part_d"]] |>
766768 aes(y = end_point), na.rm = TRUE,
767769 color = ff_colors$scales$cobolt[["700"]], size = 8
768770 ) +
769- geom_text(aes(label = point_value_lab, hjust = lab_offset), size = 16 , na.rm = TRUE) +
771+ geom_text(aes(label = point_value_lab, hjust = lab_offset), size = 20 , na.rm = TRUE) +
770772 facet_grid(sub_category ~ ., scales = "free_y", switch = "y") +
771773 labs(
772774 x = NULL,
773775 y = NULL,
774776 ) +
775777 scale_x_continuous(
776778 limits = c(
777- min(utilization[["df_part_d"]]$data_year) - 2 ,
778- max(utilization[["df_part_d"]]$data_year) + 2
779+ min(utilization[["df_part_d"]]$data_year) - 3 ,
780+ max(utilization[["df_part_d"]]$data_year) + 3
779781 ),
780782 expand = c(0, 0),
781783 breaks = range(utilization[["df_part_d"]]$data_year) #NULL
782784 ) +
783785 scale_y_continuous(breaks = NULL) +
784- theme_minimal(base_family = "Source Sans 3", base_size = 35 ) +
786+ theme_minimal(base_family = "Source Sans 3", base_size = 50 ) +
785787 theme(
786788 strip.text.y.left =
787- element_text(angle = 0, hjust = 1, vjust = 0.5, color = "grey20", size = 40 ),
789+ element_text(angle = 0, hjust = 1, vjust = 0.5, face = "bold", color = "grey20", size = 50 ),
788790 strip.placement = "outside",
789791 # panel.spacing.y = unit(0, "lines"),
790792 panel.grid = element_blank(),
791793 panel.border = element_blank(),
792794 axis.text.y = element_blank(),
793795 axis.ticks = element_blank(),
794- axis.title.x = element_text(color = "grey40", hjust = 1),
796+ axis.title.x = element_text(color = "grey40", hjust = 1), size = 55,
795797 plot.margin = margin(12, 12, 12, 12),
796798 plot.title.position = "plot",
797799 plot.title = element_text(face = "bold")
@@ -816,14 +818,14 @@ utilization[["df_medicaid_exp"]] |>
816818 aes(label = value_fmt),
817819 hjust = -.1, family = "Source Sans 3",
818820 color = ff_colors$elements[["annotation"]],
819- size = 12
821+ size = 14
820822 ) +
821823 coord_cartesian(clip = "off") +
822824 scale_x_continuous(expand = c(.005, .005)) +
823825 labs(
824826 x = NULL, y = NULL
825827 ) +
826- theme_minimal(base_size = 35 ) +
828+ theme_minimal(base_size = 45 ) +
827829 theme(
828830 axis.text.x = element_blank(),
829831 panel.grid.major.y = element_blank(),
@@ -870,7 +872,7 @@ cost_sharing[["df_cs_trend"]] |>
870872 geom_text(
871873 aes(label = lab_val),
872874 vjust = -1, na.rm = TRUE,
873- family = "Source Sans 3", size = 7 ,
875+ family = "Source Sans 3", size = 8 ,
874876 color = ff_colors$elements[["annotation"]]
875877 ) +
876878 facet_grid(~sub_category) +
@@ -880,7 +882,7 @@ cost_sharing[["df_cs_trend"]] |>
880882 unique(cost_sharing[["df_cs_trend"]]$data_year),
881883 na.rm = TRUE
882884 ),
883- expand = expansion(mult = c(0.1 , 0.1 ))
885+ expand = expansion(mult = c(0.2 , 0.2 ))
884886 ) +
885887 scale_fill_identity() +
886888 scale_color_identity() +
@@ -921,7 +923,7 @@ cost_sharing[["df_cs_trend"]] |>
921923 geom_text(
922924 aes(label = lab_val),
923925 vjust = -1, na.rm = TRUE,
924- family = "Source Sans 3", size = 7 ,
926+ family = "Source Sans 3", size = 8 ,
925927 color = ff_colors$elements[["annotation"]]
926928 ) +
927929 facet_grid(~sub_category) +
@@ -931,7 +933,7 @@ cost_sharing[["df_cs_trend"]] |>
931933 unique(cost_sharing[["df_cs_trend"]]$data_year),
932934 na.rm = TRUE
933935 ),
934- expand = expansion(mult = c(0.1 , 0.1 ))
936+ expand = expansion(mult = c(0.2 , 0.2 ))
935937 ) +
936938 scale_fill_identity() +
937939 scale_color_identity() +
@@ -974,7 +976,7 @@ cost_sharing[["df_cs_trend"]] |>
974976 geom_text(
975977 aes(label = lab_val),
976978 vjust = -1, na.rm = TRUE,
977- family = "Source Sans 3", size = 7 ,
979+ family = "Source Sans 3", size = 8 ,
978980 color = ff_colors$elements[["annotation"]]
979981 ) +
980982 facet_grid(~sub_category) +
@@ -984,7 +986,7 @@ cost_sharing[["df_cs_trend"]] |>
984986 unique(cost_sharing[["df_cs_trend"]]$data_year),
985987 na.rm = TRUE
986988 ),
987- expand = expansion(mult = c(0.1 , 0.1 ))
989+ expand = expansion(mult = c(0.2 , 0.2 ))
988990 ) +
989991 scale_fill_identity() +
990992 scale_color_identity() +
@@ -1024,7 +1026,7 @@ v_outofpocket <- cost_sharing[["df_cs_trend"]] |>
10241026 geom_text(
10251027 aes(label = lab_val),
10261028 vjust = -1, na.rm = TRUE,
1027- family = "Source Sans 3", size = 7 ,
1029+ family = "Source Sans 3", size = 8 ,
10281030 color = ff_colors$elements[["annotation"]]
10291031 ) +
10301032 facet_grid(~sub_category) +
@@ -1034,7 +1036,7 @@ v_outofpocket <- cost_sharing[["df_cs_trend"]] |>
10341036 unique(cost_sharing[["df_cs_trend"]]$data_year),
10351037 na.rm = TRUE
10361038 ),
1037- expand = expansion(mult = c(0.1 , 0.1 ))
1039+ expand = expansion(mult = c(0.2 , 0.2 ))
10381040 ) +
10391041 scale_fill_identity() +
10401042 scale_color_identity() +
@@ -1113,17 +1115,18 @@ Medicare Institutional Providers
11131115#| title: Non-Institutional Provider Types
11141116#| out-width: 100%
11151117#| out-height: 100%
1116- #| fig-width: 20
1118+ #| fig-width: 24
11171119#| fig-height: 20
11181120
11191121providers[["df_provider_noninst"]] |>
11201122 ggplot(aes(value, category, fill = fill_color)) +
1121- geom_blank(aes(value * 1.1 )) +
1123+ geom_blank(aes(value * 1.2 )) +
11221124 geom_col(width = .8) +
11231125 geom_text(
11241126 aes(label = value_fmt),
11251127 family = "Source Sans 3",
11261128 color = ff_colors$elements[["annotation"]],
1129+ size = 18,
11271130 hjust = -.1
11281131 ) +
11291132 scale_x_continuous(expand = c(.005, .005)) +
@@ -1141,7 +1144,7 @@ providers[["df_provider_noninst"]] |>
11411144 axis.text.y =
11421145 element_text(
11431146 # color = ff_colors$elements[["axis"]],
1144- size = 40
1147+ size = 50
11451148 ),
11461149 )
11471150
@@ -1154,16 +1157,17 @@ providers[["df_provider_noninst"]] |>
11541157#| title: DMEPOS Provider Types
11551158#| out-width: 100%
11561159#| out-height: 100%
1157- #| fig-width: 20
1160+ #| fig-width: 24
11581161#| fig-height: 20
11591162
11601163providers[["df_providers_dmepos"]] |>
11611164 ggplot(aes(value, category, fill = fill_color)) +
1162- geom_blank(aes(value * 1.1 )) +
1165+ geom_blank(aes(value * 1.2 )) +
11631166 geom_col(width = .8) +
11641167 geom_text(
11651168 aes(label = value_fmt),
11661169 family = "Source Sans 3",
1170+ size = 18,
11671171 color = ff_colors$elements[["annotation"]],
11681172 hjust = -.3
11691173 ) +
@@ -1179,7 +1183,7 @@ providers[["df_providers_dmepos"]] |>
11791183 panel.grid.minor = element_blank(),
11801184 panel.grid.major.y = element_blank(),
11811185 axis.text.x = element_blank(),
1182- axis.text.y = element_text(size = 40 )
1186+ axis.text.y = element_text(size = 50 )
11831187 )
11841188```
11851189
@@ -1202,6 +1206,7 @@ providers[["df_provider_inst"]] |>
12021206 aes(label = value_fmt),
12031207 family = "Source Sans 3",
12041208 color = ff_colors$elements[["annotation"]],
1209+ size = 20,
12051210 hjust = -.1
12061211 ) +
12071212 scale_x_continuous(expand = c(.005, .005)) +
@@ -1246,7 +1251,7 @@ providers[["df_hospital_subset"]] |>
12461251 coord_cartesian(clip = "off") +
12471252 labs(x = NULL, y = NULL) +
12481253 theme_minimal(
1249- base_size = 35 ,
1254+ base_size = 45 ,
12501255 base_family = "Source Sans 3",
12511256 ) +
12521257 theme(
0 commit comments