daattali/ggExtra

Marginal plots don't reflect axis limits made using coordinate system (e.g., coord_cartesian())

Open

#128 opened on Aug 15, 2018

View on GitHub
 (11 comments) (4 reactions) (0 assignees)R (47 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (392 stars)
PR merge metrics
 (PR metrics pending)

Description

As mentioned by @Futats in #75

library(ggplot2)
library(ggExtra)

p <- ggplot(mtcars) +
  geom_point(aes(wt, drat)) +
  coord_cartesian(xlim = c(4, 5.5))

ggMarginal(p)

Created on 2018-08-15 by the reprex package (v0.2.0).

Contributor guide