Questions tagged [gtable]

`gtable` is an R package used to facilitate the layout of graphics based on the grid package.

The R package gtable is designed to help construct and manipulate layouts containing graphical elements. The standard grid package in R provides low-level functions to define viewports, and place graphical elements (grobs) at specific locations within the device window. gtable builds upon these functions and provides a higher-level interface, where one can e.g. merge two layouts, add columns, rows, insert graphical elements in a given cell, and change the display order, among other things.

The gtable package is used internally by ggplot2, and can therefore be used to modify the layout of such plots.

140 questions
0
votes
0 answers

Title to group facet labels

I'd like to label my facet grid with a title ("ID", as seen below) using the guidelines provided in this post, but I don't understand how to fiddle with the Grob parameters enough to adapt the code to my particular case (not because of lack of…
SilvanD
  • 325
  • 2
  • 14
0
votes
0 answers

ggplot2: Using gtable to move strip labels to top of panel for facet_grid AND creating multiple facet_grid plots, by 'class', into one grid

As you can see by the title, my question is actually related to this question. The solution to this question works great, but now I would like to take this plot and produce multiple facet_grid plots by 'class' (still keeping the labels up top) into…
user3542131
  • 35
  • 1
  • 1
  • 4
0
votes
1 answer

In ggplot2, How can I fully present my ylab which has been partly blocked by the y-ticks?

Here is my original question: In ggplot2, how can I set y-labs separately for double-panel plots? **And after I used the method given by "baptiste", which is also the correct anwser, and as soon as I change the word size bigger, part of the word has…
Ping Tang
  • 415
  • 1
  • 9
  • 20
0
votes
0 answers

How to update gtable at gWidget in R?

I'm struggling to update the table data in the following code for GUI. It works to add each new request to the previous, so that it doesn't fit the screen, while I need to replace old request with the new one. Thanks! A. require ( gWidgets ) options…
-2
votes
1 answer

How to plot multiple ggplot_gtable objects on multiple pages of a pdf?

This is not a repetitive question though the title might seem similar. Let's say I have a function f1() which plots an object of class "gTable,grob,gDesc" once. I'm using grid.draw() to plot the object. So when we call : pdf("filename.pdf", height =…
joel.wilson
  • 8,243
  • 5
  • 28
  • 48
1 2 3
9
10