[R] [External] ggplot2: multiple box plots, different tibbles/dataframes

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Wed Nov 10 22:51:16 CET 2021

On Wed, 10 Nov 2021, Richard M. Heiberger wrote:

> I don't understand your question. It looks like the example in
> ?lattice::panel.bwplot does exactly what you want (modulo using ggplot
> instead of lattice). Therefore it looks like creating a single column of y
> from the y in each data.frame, and also a single column of x from the x in
> each data.frame should be enough.
> Here is an even simpler example
> y <- rnorm(20)
> x <- rep(1:2, each=10)
> library(lattice)
> bwplot(x ~ y, horizontal=TRUE)


I've used lattice in the past and am learning ggplot2 now.

Thanks for your lattice suggestion.


More information about the R-help mailing list