Skip to content

Commit ece7a1a

Browse files
committed
removing gridlines for bar charts
1 parent 1011635 commit ece7a1a

10 files changed

Lines changed: 14 additions & 19 deletions

File tree

R/psrc_bar_or_column_charts.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ generic_column_bar <- function(t, category_var, numeric_var, fill,
118118

119119
# placement of the labels is different between column and bar charts to look nicer with hjust or vjust
120120
}else if(is.null(moe) & interactive==FALSE & column_vs_bar =='bar'){
121+
c<- c +
122+
ggplot2::theme(panel.grid.major.x = ggplot2::element_blank(),
123+
panel.grid.major.y = ggplot2::element_blank())
124+
121125
c <- c + ggplot2::geom_text(ggplot2::aes(x=.data[[category_var]],
122126
y=.data[[numeric_var]],
123127
label=paste0(valfrmt$pfx, prettyNum(round(.data[[numeric_var]]* valfrmt$fac, dec), big.mark = ","), valfrmt$sfx)),

docs/articles/make-plots-interactive.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-583 Bytes
Loading

docs/articles/modes_bar_chart.png

-474 Bytes
Loading

0 commit comments

Comments
 (0)