diff --git a/R/donut.R b/R/donut.R index 0c1cd93..268010f 100644 --- a/R/donut.R +++ b/R/donut.R @@ -30,7 +30,7 @@ donut <- function(df, arrange = TRUE, hole_size = 3, add_text = TRUE, - add_text_treshold_display = 5, add_text_color = "white", add_text_suffix = "", theme = theme_reach(legend_reverse = TRUE)){ + add_text_treshold_display = 5, add_text_color = "white", add_text_suffix = "", theme = theme_reach(legend_reverse = TRUE, axis_x = FALSE)){ # Arrange by biggest prop first ? if (arrange) df <- dplyr::arrange( diff --git a/README.Rmd b/README.Rmd index df843f4..110e5d8 100644 --- a/README.Rmd +++ b/README.Rmd @@ -168,7 +168,8 @@ donut(df, add_text_treshold_display = 5, x_title = "Displacement status", title = "% of HHs by displacement status", - theme = theme_reach(legend_reverse = TRUE)) + theme = theme_reach(legend_reverse = TRUE, + axis_x = FALSE)) ```