-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
documentationgood first issue ❤️good issue for first-time contributorsgood issue for first-time contributorshelp wanted ❤️we'd love your help!we'd love your help!
Description
I am trying to suppress the panel.grid.major.x
lines, I can do so if I use +
but not if I update the theme using theme_update
. The error mentions element_line but it happens with other types of element.
It might be related to #1880 and to the #1555
library("ggplot2")
theme_update(theme(panel.grid.major.x = element_blank()))
#> Error in (function (el, elname) : Element line must be a element_line object.
theme_update(theme(panel.grid.major.x = element_line(colour = "white")))
#> Error in (function (el, elname) : Element line must be a element_line object.
modified_theme <- theme_bw() +
theme(panel.grid.major.x = element_blank())
theme_update(modified_theme)
#> Error in (function (el, elname) : Element line must be a element_line object.
modified_theme <- theme_bw() +
theme(panel.grid.major.x = element_line(colour = "transparent"))
theme_update(modified_theme)
#> Error in (function (el, elname) : Element line must be a element_line object.
modified_theme <- theme_bw() +
theme(panel.grid.major = element_blank(),
panel.grid.major.x = element_line(colour = "transparent"))
theme_update(modified_theme)
#> Error in (function (el, elname) : Element line must be a element_line object.
Created on 2018-11-29 by the reprex package (v0.2.1)
Session info
devtools::session_info()
#> ─ Session info ──────────────────────────────────────────────────────────
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> os Ubuntu 16.04.5 LTS
#> system i686, linux-gnu
#> ui X11
#> language en_US
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz Europe/Madrid
#> date 2018-11-29
#>
#> ─ Packages ──────────────────────────────────────────────────────────────
#> package * version date lib source
#> assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.1)
#> backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.1)
#> base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.5.1)
#> bindr 0.1.1 2018-03-13 [1] CRAN (R 3.5.1)
#> bindrcpp 0.2.2 2018-03-29 [1] CRAN (R 3.5.1)
#> callr 3.0.0 2018-08-24 [1] CRAN (R 3.5.1)
#> cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.1)
#> colorspace 1.3-2 2016-12-14 [1] CRAN (R 3.5.1)
#> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1)
#> debugme 1.1.0 2017-10-22 [1] CRAN (R 3.5.1)
#> desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.1)
#> devtools 2.0.1 2018-10-26 [1] CRAN (R 3.5.1)
#> digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.1)
#> dplyr 0.7.8 2018-11-10 [1] CRAN (R 3.5.1)
#> evaluate 0.12 2018-10-09 [1] CRAN (R 3.5.1)
#> fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.1)
#> ggplot2 * 3.1.0 2018-10-25 [1] CRAN (R 3.5.1)
#> glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.1)
#> gtable 0.2.0 2016-02-26 [1] CRAN (R 3.5.1)
#> htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.1)
#> knitr 1.20 2018-02-20 [1] CRAN (R 3.5.1)
#> lazyeval 0.2.1 2017-10-29 [1] CRAN (R 3.5.1)
#> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1)
#> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.1)
#> munsell 0.5.0 2018-06-12 [1] CRAN (R 3.5.1)
#> pillar 1.3.0 2018-07-14 [1] CRAN (R 3.5.1)
#> pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.1)
#> pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.5.1)
#> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.1)
#> plyr 1.8.4 2016-06-08 [1] CRAN (R 3.5.1)
#> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.1)
#> processx 3.2.0 2018-08-16 [1] CRAN (R 3.5.1)
#> ps 1.2.1 2018-11-06 [1] CRAN (R 3.5.1)
#> purrr 0.2.5 2018-05-29 [1] CRAN (R 3.5.1)
#> R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.1)
#> Rcpp 1.0.0 2018-11-07 [1] CRAN (R 3.5.1)
#> remotes 2.0.2 2018-10-30 [1] CRAN (R 3.5.1)
#> rlang 0.3.0.1 2018-10-25 [1] CRAN (R 3.5.1)
#> rmarkdown 1.10 2018-06-11 [1] CRAN (R 3.5.1)
#> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.1)
#> scales 1.0.0 2018-08-09 [1] CRAN (R 3.5.1)
#> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.1)
#> stringi 1.2.4 2018-07-20 [1] CRAN (R 3.5.1)
#> stringr 1.3.1 2018-05-10 [1] CRAN (R 3.5.1)
#> testthat 2.0.1 2018-10-13 [1] CRAN (R 3.5.1)
#> tibble 1.4.2 2018-01-22 [1] CRAN (R 3.5.1)
#> tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.5.1)
#> usethis 1.4.0 2018-08-14 [1] CRAN (R 3.5.1)
#> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1)
#> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.1)
#>
#> [1] /usr/lib/R/site-library
#> [2] /home/lrevilla/R/i686-pc-linux-gnu-library/3.5
#> [3] /usr/local/lib/R/site-library
#> [4] /usr/lib/R/library
Metadata
Metadata
Assignees
Labels
documentationgood first issue ❤️good issue for first-time contributorsgood issue for first-time contributorshelp wanted ❤️we'd love your help!we'd love your help!