Skip to content

Commit

Permalink
fix text alignment in x axis, fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
njtierney committed May 23, 2018
1 parent f4d5b98 commit 958f25d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,6 +1,6 @@
Package: visdat
Title: Preliminary Visualisation of Data
Version: 0.2.3.9500
Version: 0.2.3.9600
Authors@R: c(
person("Nicholas", "Tierney", role = c("aut", "cre"),
email = "nicholas.tierney@gmail.com",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
@@ -1,3 +1,9 @@
# visdat 0.2.3.9600 (2018/05/23)

# Bugfix

* Fix visdat x axis alignment when show_perc_col = FALSE - [#82](https://github.com/ropensci/visdat/issues/82)

# visdat 0.2.3.9500 (2018/04/27)

# New feature
Expand Down
4 changes: 3 additions & 1 deletion R/vis_miss.R
Expand Up @@ -164,7 +164,9 @@ vis_miss <- function(x,
} else {
vis_miss_plot +
ggplot2::scale_x_discrete(position = "top",
limits = col_order_index)
limits = col_order_index) +
# fix up the location of the text
ggplot2::theme(axis.text.x = ggplot2::element_text(hjust = 0))
}

# guides(fill = guide_legend(title = "Type"))
Expand Down

0 comments on commit 958f25d

Please sign in to comment.