daattali/ggExtra
View on GitHubMarginal plots don't reflect axis limits made using coordinate system (e.g., coord_cartesian())
Open
#128 opened on Aug 15, 2018
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).