Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facet_wrap produces a NA panel #45

Open
hbahamonde opened this issue Feb 15, 2024 · 0 comments
Open

facet_wrap produces a NA panel #45

hbahamonde opened this issue Feb 15, 2024 · 0 comments

Comments

@hbahamonde
Copy link

My issue is about package functionality: when using facet_wrap I get a panel for NA values. However, the gg object (which the function plot() plots does not contain any NAs. I can see you run into the same issue. From your website, and using the same coded provided (see below), a NA panel is produced.

## load package
library("cregg")

## plot with facetting
plot(stacked) + ggplot2::facet_wrap(~ contest_no, nrow = 1L)


## session info for your system
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Helsinki
tzcode source: internal

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] gtable_0.3.4     ggplot2_3.4.3    cregg_0.4.0      vtable_1.4.6     kableExtra_1.3.4
[6] dplyr_1.1.3      pacman_0.5.1    

loaded via a namespace (and not attached):
 [1] sandwich_3.0-2    utf8_1.2.3        generics_0.1.3    xml2_1.3.5        stringi_1.7.12   
 [6] lattice_0.21-9    digest_0.6.33     magrittr_2.0.3    evaluate_0.22     fastmap_1.1.1    
[11] plyr_1.8.9        Matrix_1.6-1.1    DBI_1.1.3         survival_3.5-7    httr_1.4.7       
[16] rvest_1.0.3       fansi_1.0.5       viridisLite_0.4.2 scales_1.2.1      cli_3.6.1        
[21] crayon_1.5.2      mitools_2.4       rlang_1.1.1       cowplot_1.1.1     munsell_0.5.0    
[26] splines_4.3.2     withr_2.5.1       tools_4.3.2       colorspace_2.1-0  webshot_0.5.5    
[31] vctrs_0.6.3       R6_2.5.1          zoo_1.8-12        lifecycle_1.0.3   stringr_1.5.0    
[36] ggstance_0.3.6    pkgconfig_2.0.3   pillar_1.9.0      Rcpp_1.0.11       glue_1.6.2       
[41] systemfonts_1.0.4 lmtest_0.9-40     xfun_0.40         tibble_3.2.1      tidyselect_1.2.0 
[46] rstudioapi_0.15.0 knitr_1.44        farver_2.1.1      htmltools_0.5.6.1 survey_4.2-1     
[51] labeling_0.4.3    rmarkdown_2.25    svglite_2.1.2     compiler_4.3.2   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant