Skip to content

aplot not working #38

@CongLiu37

Description

@CongLiu37

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions