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

as.ggplot: unable to preserve titles and legends for plots from package eulerr #5

Closed
codetrainee opened this issue May 8, 2019 · 2 comments

Comments

@codetrainee
Copy link

@codetrainee codetrainee commented May 8, 2019

I was trying to convert a venn diagram from eulerr package using as.ggplot but the title and legends are missing.

library(eulerr)
library(magrittr)
library(ggplotify)

df <- data.frame(A = c(1, 1, 0, 1, 0, 1),
                 B = c(0, 0, 1, 1, 1, 1),
                 C = c(1, 0, 1, 0, 1, 0))

p <- 
  df %>% 
  euler(.) %>%
  plot(.,
       main = "Test",
       quantities = TRUE,
       legend = list(side = "bottom")
  ) 

p 

p %>% as.ggplot()

Created on 2019-05-09 by the reprex package (v0.2.1)

@GuangchuangYu
Copy link
Owner

@GuangchuangYu GuangchuangYu commented Aug 6, 2019

image

@GuangchuangYu
Copy link
Owner

@GuangchuangYu GuangchuangYu commented Aug 7, 2019

version 0.0.4 that supports eulerr is now on cran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.