search for: surround_viewport

Displaying 1 result from an estimated 1 matches for "surround_viewport".

Did you mean: surround_viewports
2010 Jun 07
1
Patch for legend.position={left,top,bottom} in ggplot2
...geom_line() + opts(title = "title", legend.position = "top") ggplot(data, aes(x = x, y = y, colour = colour)) + geom_line() + opts(title = "title", legend.position = "bottom") you'll see that plots 2 to 4 are broken. I think I located the bug in surround_viewports() where the graphical elements are placed into the grid. If we increment all rows and columns of the graphical elements for positions "left", "top", and "bottom" by 1, those graphs look sane again. I assume that a new first row and column were added at some point in t...