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

geom_marquee() or element_marquee() does not render #32

Closed
alejandrohagan opened this issue Jun 12, 2024 · 1 comment
Closed

geom_marquee() or element_marquee() does not render #32

alejandrohagan opened this issue Jun 12, 2024 · 1 comment

Comments

@alejandrohagan
Copy link

Hi,

when I run the below example code I get an error message and while the ggplot renders the geom does not display anything.

Similar when I use element_marque() to change the labels, the underlying element does not render.

Warning message:
In drawDetails.GridGroup(x, recording = FALSE) : Group definition failed
library(tidyverse)
library(marquee)


cars <- sub("(\\w+)", "{.red ***\\1***}", rownames(mtcars))


ggplot(mtcars) + aes(disp, mpg, label = cars) + 
  geom_marquee()

image

Below is my session info

R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: America/Chicago
tzcode source: internal

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

other attached packages:
 [1] lubridate_1.9.3 forcats_1.0.0   stringr_1.5.1   dplyr_1.1.4     purrr_1.0.2     readr_2.1.5     tidyr_1.3.1     tibble_3.2.1    ggplot2_3.5.0   tidyverse_2.0.0 gridtext_0.1.5  marquee_0.1.0  

loaded via a namespace (and not attached):
 [1] gtable_0.3.4          compiler_4.4.0        tidyselect_1.2.1      Rcpp_1.0.12           xml2_1.3.6            systemfonts_1.1.0     scales_1.3.0          textshaping_0.4.0     R6_2.5.1             
[10] labeling_0.4.3        generics_0.1.3        munsell_0.5.0         pillar_1.9.0          tzdb_0.4.0            rlang_1.1.3           utf8_1.2.4            stringi_1.8.3         timechange_0.2.0.9000
[19] cli_3.6.2             withr_3.0.0           magrittr_2.0.3        rstudioapi_0.16.0     hms_1.1.3             lifecycle_1.0.4       vctrs_0.6.5           glue_1.7.0            farver_2.1.1      
@thomasp85
Copy link
Member

The warning message is a bug in RStudio that shouldn't affect the output. If you are using ragg in the plot pane try to update that. My work on marquee uncovered some issues there that were fixed in the last release

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

2 participants