## Multiple ggplots of different sizes

It’s relatively simple using grid.arrange in the gridExtra package to arrange multiple plots in a matrix, but how can you arrange plots (the ones I’m working on are from ggplot2) when some plots are …

Technical knowledge for tech readers and developers

ggplot2

It’s relatively simple using grid.arrange in the gridExtra package to arrange multiple plots in a matrix, but how can you arrange plots (the ones I’m working on are from ggplot2) when some plots are …

I have a boxplot showing multiple boxes. I want to connect the mean for each box together with a line. The boxplot does not display the mean by default, instead the middle line only indicates the …

My goal is to make several plots with ggplot and combine them into a single plot using grid.arrange in the gridExtra package.

I’m having an issue in that the legends in my ggplot (while appropriately …

I am developing a graphic with ggplot2 wherein I need to superimpose text over other graphical elements. Depending on the color of the elements underlying the text, it can be difficult to read the …

I have a list, p, where each element of p is a list of ggplot2 plotting objects.

I would like to output a single pdf containing all the plots in p such that the plots in p[[1]] are on page 1, the …

By default, on a faceted ggplot (facet_grid), the y-axis facet labels are on the right and the y-axis breaks and labels are on the left.

Is it possible to switch them?

I have this data frame:

Date Server FileSystem PercentUsed

1 12/1/2011 A / 60

2 1/2/2012 A /var 50

3 2/1/2012 A tmp 90

4 …

I perform regression analyses on a daily basis. In my case this typically means estimation of the effect of continuous and categorical predictors on various outcomes. Survival analysis is probably the …

I have the same problem as this user: I’d like to make a facet_grid plot with a discrete x-axis, and I’d like to have the x-axis labels be written under each facet rather than only underneath the …

I’m using ggplot2 and am trying to generate a plot which shows the following data.

df=data.frame(score=c(4,2,3,5,7,6,5,6,4,2,3,5,4,8),

age=c(18,18,23,50,19,39,19,23,22,22,40,35,22,16))

…