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

aplot not working #38

Open
CongLiu37 opened this issue Jun 10, 2024 · 4 comments
Open

aplot not working #38

CongLiu37 opened this issue Jun 10, 2024 · 4 comments

Comments

@CongLiu37
Copy link

Hello,

I am using aplot 0.2.2 and ggplot2 3.5.1. I tried the examples, but got error:

library(ggplot2)
library(aplot)

p <- ggplot(mtcars, aes(mpg, disp)) + geom_point()
p2 <- ggplot(mtcars, aes(mpg)) +
    geom_density(fill='steelblue', alpha=.5) +
        ggfun::theme_noxaxis()
p3 <- ggplot(mtcars, aes(x=1, y=disp)) +
    geom_boxplot(fill='firebrick', alpha=.5) +
    theme_void()
ap <- p %>%
    insert_top(p2, height=.3) %>%
    insert_right(p3, width=.1)
ap
Error in Ops.data.frame(guide_loc, panel_loc): '==' only defined for equally-sized data frames

Looks like they are not compatible?

Sincerely,

Cong

@ningzhilin
Copy link

I also have this problem recently.
And when I build a new conda environment and just install these two packages ggplot2 and aplot, this code could run. But more installation, it could not.

@CongLiu37
Copy link
Author

CongLiu37 commented Jun 21, 2024 via email

@ningzhilin
Copy link

image
I try it again. And this works.

@ningzhilin
Copy link

image
It solved when update the "patchwork" package. You can have a try

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