@@ -1185,13 +1185,13 @@ srv_missing_data <- function(id,
11851185 )
11861186 tile <- within(ANL_q ,
11871187 {
1188- by_variable_plot <- ggplo2 :: ggplot(ANL , ggplo2 :: aes(group_var_name , name )) +
1189- ggplo2 :: geom_tile(ggplo2 :: aes(fill = column )) +
1190- ggplo2 :: geom_text(ggplo2 :: aes(label = scales :: percent(perc )),
1188+ by_variable_plot <- ggplot2 :: ggplot(ANL , ggplot2 :: aes(group_var_name , name )) +
1189+ ggplot2 :: geom_tile(ggplot2 :: aes(fill = column )) +
1190+ ggplot2 :: geom_text(ggplot2 :: aes(label = scales :: percent(perc )),
11911191 data = . %> % dplyr :: filter(perc > 0 ), color = " white"
11921192 ) +
1193- ggplo2 :: scale_x_discrete(expand = ggplo2 :: expansion()) +
1194- ggplo2 :: scale_fill_gradient(high = " #ff2951ff" , low = " grey90" , labels = labels ) +
1193+ ggplot2 :: scale_x_discrete(expand = ggplot2 :: expansion()) +
1194+ ggplot2 :: scale_fill_gradient(high = " #ff2951ff" , low = " grey90" , labels = labels ) +
11951195 labs +
11961196 ggthemes
11971197 },
@@ -1227,13 +1227,13 @@ srv_missing_data <- function(id,
12271227
12281228 tile <- within(ANL_q ,
12291229 {
1230- by_variable_plot <- ggplo2 :: ggplot(ANL , ggplo2 :: aes(group_var_name , label )) +
1231- ggplo2 :: geom_tile(ggplo2 :: aes(fill = column )) +
1232- ggplo2 :: geom_text(ggplo2 :: aes(label = scales :: percent(perc )),
1230+ by_variable_plot <- ggplot2 :: ggplot(ANL , ggplot2 :: aes(group_var_name , label )) +
1231+ ggplot2 :: geom_tile(ggplot2 :: aes(fill = column )) +
1232+ ggplot2 :: geom_text(ggplot2 :: aes(label = scales :: percent(perc )),
12331233 data = . %> % dplyr :: filter(perc > 0 ), color = " white"
12341234 ) +
1235- ggplo2 :: scale_x_discrete(expand = ggplo2 :: expansion()) +
1236- ggplo2 :: scale_fill_gradient(high = " #ff2951ff" , low = " grey90" , labels = labels ) +
1235+ ggplot2 :: scale_x_discrete(expand = ggplot2 :: expansion()) +
1236+ ggplot2 :: scale_fill_gradient(high = " #ff2951ff" , low = " grey90" , labels = labels ) +
12371237 labs +
12381238 ggthemes
12391239 },
0 commit comments