Skip to content

Commit

Permalink
Both axis lines draw above panel
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jul 5, 2012
1 parent edd27c0 commit 2741063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -21,7 +21,7 @@ Imports:
plyr (>= 1.0), plyr (>= 1.0),
digest, digest,
grid, grid,
gtable (>= 0.1.0.1), gtable (>= 0.1.0.2),
reshape2, reshape2,
scales (>= 0.2.1.1), scales (>= 0.2.1.1),
memoise, memoise,
Expand Down
3 changes: 2 additions & 1 deletion R/facet-null.r
Expand Up @@ -60,7 +60,8 @@ facet_render.null <- function(facet, panel, coord, theme, geom_grobs) {
layout <- gtable_matrix("layout", all, layout <- gtable_matrix("layout", all,
widths = unit.c(grobWidth(axis_v), unit(1, "null")), widths = unit.c(grobWidth(axis_v), unit(1, "null")),
heights = unit.c(unit(aspect_ratio, "null"), grobHeight(axis_h)), heights = unit.c(unit(aspect_ratio, "null"), grobHeight(axis_h)),
respect = respect, clip = c("off", "off", "on", "off") respect = respect, clip = c("off", "off", "on", "off"),
z = matrix(c(3, 2, 1, 4), ncol = 2, byrow = TRUE)
) )
layout$layout$name <- c("axis-l", "spacer", "panel", "axis-b") layout$layout$name <- c("axis-l", "spacer", "panel", "axis-b")


Expand Down

0 comments on commit 2741063

Please sign in to comment.