Skip to content

Explanation of how align_plot, ggdraw, and draw_plot work together for dual-y-axis plots. #191

@abalter

Description

@abalter

I'm looking at this example. Also here.

One of the reasons I turned to cowplot is because the native ggplot sec.axis method feels hacky, especially with the confusing scaling issue. Unfortunately, I'm not following the logic in how it works in cowplot either. For example, in

ggdraw(aligned_plots[[1]]) + draw_plot(aligned_plots[[2]])

I'm confused why there isn't more symmetry between the two plots. It makes me feel like I'm doing something I'm not supposed to.

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