Questions tagged [r-grid]

grid is an R package providing low-level plotting facilities.

grid is an package providing low-level ting facilities.

Repositories

Vignettes

  • Vignettes for this package are not available online. Use browseVignettes() or vignette(package = "grid") to access them.

Books

Other resources

Related tags

Unrelated tags

341 questions
0
votes
0 answers

Overlay Plots : Time Series - Different Frequencies (Lines over Bars) [ggplot2]

My question is about overlaying plots of different x and y scales .The raw data is out of a public weather database in New Zealand called CliFlo, managed by NIWA. I'm not prepared to copy the data for an example because of copyright protections. I…
S-Can
  • 23
  • 4
0
votes
1 answer

Highlight specific columns in grid.table/tableGrob in R

I want to highlight specific columns of a table to a different colour. This is how the table appears now, when I use grid.table to save it as an image. I want the RMSE and MAPE columns to be highlighted, thus should be of different colours, say…
Aneesh
  • 63
  • 2
  • 12
0
votes
1 answer

Turn Off Row Names when Printing a Table

This is a nifty way to print a table. library(gridExtra) library(grid) d <- head(iris[,1:3]) grid.table(d) I think the row names uglify the table though. So let's turn them off. grid.table(d, row.names = FALSE) Woops, that doesn't work and gives…
stackinator
  • 5,429
  • 8
  • 43
  • 84
0
votes
1 answer

Add separate legend to PDF from lapply

I've created a multi-page PDF with plots generated from a few hundred unique identifiers. Basically, I would like to add a separate legend panel once per page. The PDF is basically constructed as detailed here and here There are dozens of…
d-cubed
  • 1,034
  • 5
  • 30
  • 58
0
votes
1 answer

Horizontal gradient with rasterGrob R for ggplot2 background

I am trying to add a background to a plot to show the light conditions over a 24-hour period (i.e. nighttime, sunrise, daytime, sunset). I would like to use a gradient to denote the light transition periods (8AM-9AM for sunrise and 8PM-9PM for…
0
votes
1 answer

How do I save or plot from within lists

I have named lists of entities (objects, lists, grobs?), from qplot or ggplot, that render or save just fine on their own, but I can't figure out how to pass them as a list or vector for arrangement. I believe my issue is with extracting list…
mightypile
  • 7,589
  • 3
  • 37
  • 42
0
votes
2 answers

How to create a heat Map for each column in a table

I would like to create a heat map showing the highest value in a colour maybe light blue and the lowest value in dark blue and different shades throughout the column. This should be on a column by column basis not on the full table. How would I get…
user2946746
  • 1,740
  • 3
  • 21
  • 36
0
votes
2 answers

ggplot with bty="n", or how to add grid coordinates to plot coordinates

I have a question that expands on this one. Basically I want to add bty = "n" to a ggplot2 graph in a proper way. Emphasis on proper here because the solution in the other question almost what I want, except for this detail: I would like it if the…
Vandenman
  • 3,046
  • 20
  • 33
0
votes
1 answer

How to combine two ggplots with one rotated?

How do you combine two ggplots g1 and g2 with one on the left and one on the right, 90° rotated (only the right one) ? I have already looked at grid and gridExtra package but I don't find my way through all of this.
Rodolphe LAMPE
  • 1,346
  • 2
  • 11
  • 17
0
votes
1 answer

Editing symbol attributes with R::grid

For grid practice purposes, I am trying to adjust the plot symbol. The idea is to connect min/max values with a vertical line, and give both symbols & line the same color fill without visible outline. I've figured out most steps. My problem is with…
user2105469
  • 1,413
  • 3
  • 20
  • 37
0
votes
1 answer

Create a surface from "pre-gridded" points

I have a large data.frame which has 3 variables Longitude, Latitudeand Temp. The data is arranged so that it is regularly spaced on a "grid" of 1/4 degree - so that dput(head(dat)) gives: structure(list(Longitude = c(0.125, 0.375, 0.625, 0.875,…
danny_C_O_T_W
  • 228
  • 2
  • 8
0
votes
0 answers

Grid and image: too many lines?

I'm using image and grid together to plot about 1500 lines of data for 14 variables. I want to do a grid that has vertical lines for the 14 variables and a horizontal line for each of the 1500 respondents. However when I do this I get a gray plot…
vashts85
  • 1,069
  • 3
  • 14
  • 28
0
votes
0 answers

Set width and height of graphic made using ggplot, grid, and gridExtra

If I have a graphic composed of several plots, say three plots arranged vertically. This is a gtable object and can be drawn to the page with: grid::grid.newpage() grid::grid.draw(plot) However I see that the plot in my RStudio is 'smushed up' as…
SJWard
  • 3,629
  • 5
  • 39
  • 54
0
votes
1 answer

call a vector of names for grid.arrange

lets say I have a list called ALL with 40 elements, each of which is a ggplot. if i want to plot one of these i can do ALL[[1]] or print(ALL) if i want to plot them all together i can do grid.arrange(ALL[[1]] ,ALL[[2]], ALL[[3]], .... …
user1320502
  • 2,510
  • 5
  • 28
  • 46
0
votes
2 answers

How to do kriging with polygon data? (Do not want block kriging)

I am trying to apply kriging to interpolate the air pollution concentration (target variable) When I run the krige function as below, R return an error. RSPAVE is the target variable; air is the dataset the contains the RSPAVE; TPU is the…
cyrusjan
  • 637
  • 1
  • 8
  • 23
1 2 3
22
23